Changes

Summary

  1. [libc][Obvious] Add the new header file PlatformDefs.h to the fputil  target. (details)
  2. [Attributor] Don't print the call-graph in a hard-coded file. (details)
  3. [Polly][Isl] Refactoring IslAstInfo::getBuild() and IslAstInfo::IslAstUserPayload::Build to use isl++. NFC (details)
  4. [mlir][linalg] Fix PadTensorOp constructor (details)
  5. [NFC] Assert non-zero factor before division (details)
  6. [llvm][Inliner] Add an optional PriorityInlineOrder (details)
  7. [flang] Rewrite test for CPU_TIME (details)
  8. [Test] Add XFAIL unit test for PR50765 (details)
  9. [InstCombine] Fold (sext bool X) * (sext bool X) to zext (and X, X) (details)
  10. [AMDGPU] Update generated checks. NFC. (details)
  11. [Attributor] Fix UB behavior on uninitalized bool variables. (details)
Commit 7a1e4f18468d0f25407b6ea9f7986cf2a4620f54 by sivachandra
[libc][Obvious] Add the new header file PlatformDefs.h to the fputil  target.
The file was modifiedlibc/utils/FPUtil/CMakeLists.txt
Commit 7670938bbad8755a34a282febc852651255c69b3 by hokein.wu
[Attributor] Don't print the call-graph in a hard-coded file.

This looks like not a practical pattern in our codebase (it could fail
in some sandbox environement).

Instead we print it via standard output, and it is controled by the
-attributor-print-call-graph, this follows a similiar pattern of attributor-print-dep.
The file was modifiedllvm/test/Transforms/Attributor/callgraph.ll
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit 2a629efc74e5ad414f05e293f296b392f724bc9f by patacca
[Polly][Isl] Refactoring IslAstInfo::getBuild() and IslAstInfo::IslAstUserPayload::Build to use isl++. NFC

Polly uses algorithms from the Integer Set Library (isl), which is a library written in C and which is incompatible with the rest of the LLVM as it is written in C++.

Changes made:
- Refactoring the method `IslAstInfo::getBuild()`
- `IslAstInfo::IslAstUserPayload.Build` now uses C++ types instead of C types
- Removing destructor of `IslAstInfo::IslAstUserPayload`

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D104370
The file was modifiedpolly/include/polly/CodeGen/IslAst.h
The file was modifiedpolly/lib/CodeGen/IslNodeBuilder.cpp
The file was modifiedpolly/lib/CodeGen/IslAst.cpp
Commit 6f665cd53dfdb3a23ed10950113fd73a0f53c9e7 by springerm
[mlir][linalg] Fix PadTensorOp constructor

Differential Revision: https://reviews.llvm.org/D104510
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Commit fa5eb22ad4e127b1fa960b33da890afb5bca3f92 by mkazantsev
[NFC] Assert non-zero factor before division

This is to ensure that zero denominator leads to controlled
assertion failure rather than UB.
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Commit a740b707d1937621dcf56579001bcad87b81724f by taolq
[llvm][Inliner] Add an optional PriorityInlineOrder

This patch adds an optional PriorityInlineOrder, which uses the heap to order inlining.
The callsite which size is smaller would have a higher priority.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D104028
The file was modifiedllvm/test/Transforms/Inline/inline_call.ll
The file was modifiedllvm/test/Transforms/Inline/inline_invoke.ll
The file was modifiedllvm/test/Transforms/Inline/monster_scc.ll
The file was modifiedllvm/lib/Transforms/IPO/Inliner.cpp
The file was modifiedllvm/test/Transforms/Inline/last-callsite.ll
Commit 4498137bd7857c07921b4cd6313baac62ead24e2 by diana.picus
[flang] Rewrite test for CPU_TIME

Don't rely on volatile writes to keep the CPU busy - it seems MSVC
optimizes them out, so we don't get different values for 'start' and
'end' on Windows. Rewrite the test to loop until we get a different
value for 'end'.

Fix suggested by Michael Kruse in
https://reviews.llvm.org/rG57e85622bbdb2eb18cc03df2ea457019c58f6912#inline-6002

Committing to fix the Windows buildbot, post-commit comments welcome!
The file was modifiedflang/unittests/RuntimeGTest/Time.cpp
Commit 07bbfd9c1368a165952e74902016739287ce2299 by mkazantsev
[Test] Add XFAIL unit test for PR50765
The file was addedllvm/test/Transforms/LoopStrengthReduce/pr50765.ll
Commit 6643e51d79d776efc3f4469b6f90b73c71a8fc41 by vdsered
[InstCombine] Fold (sext bool X) * (sext bool X) to zext (and X, X)

InstCombine didn't perform (sext bool X) * (sext bool X) --> zext (and X, X) which can result in just (zext X). The patch adds regression tests to check this transformation and adds a check for equality of mul's operands for that case.

Differential Revision: https://reviews.llvm.org/D104193
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
The file was modifiedllvm/test/Transforms/InstCombine/mul.ll
Commit 1f9dcd2b7384780cb3e4ae34e58799ef2816192b by jay.foad
[AMDGPU] Update generated checks. NFC.
The file was modifiedllvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-i16-to-i32.ll
Commit 3f5d53a525c62c507a482fd5f4c08451835b342d by hokein.wu
[Attributor] Fix UB behavior on uninitalized bool variables.

Found by ASAN.
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp