Changes

Summary

  1. [LLVM][AIX] Prefer a 32-bit default target triple on AIX (details)
  2. [NVPTX] Remove fmin/fmax.NaN.f64 again (details)
Commit 5cf9b2e341be7c71694fbc11be490473b7831b0d by daltenty
[LLVM][AIX] Prefer a 32-bit default target triple on AIX

If the user doesn't specify a default target triple, the LLVM CMake usually defaults us into the host triple. This is a problem when building Clang/LLVM on 64-bit AIX (i.e. powerpc64-ibm-aix), as the host toolchain (e.g. ar, ld, nm, dump) all expect the compiler to generate 32-bit objects by default (which both GCC and XL on the platform do) and will hard error if passed a 64-bit object without an explicit option or environment setting. This breaks downstream consumers, such as builds generated with build tools like CMake, which when they invoke clang, etc. without explicit bitmode flags also expect 32-bit mode.

This patch changes the default target selection when the host is powerpc64-ibm-aix to prefer powerpc-ibm-aix to avoid these issues. We don't update the runtimes/CMakeList.txt since the default is less meaningful as we assume runtimes will need to build for both targets anyways.

Differential Revision: https://reviews.llvm.org/D118377
The file was modifiedllvm/CMakeLists.txt
Commit f7da4a5d4dee393043177599155e8331dbe04892 by csigg
[NVPTX] Remove fmin/fmax.NaN.f64 again

Added in https://reviews.llvm.org/D117204, but it does not exist.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D118398
The file was modifiedllvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
The file was modifiedllvm/lib/Target/NVPTX/NVPTXInstrInfo.td
The file was modifiedllvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll