llvm-project/llvm/test/Transforms/StructurizeCFG
Jay Foad 0e74d75a29 [StructurizeCFG] Fix boolean not bug
D118623 added code to fold not-of-compare into a compare
with the inverted predicate, if the compare had no other
uses. This relies on accurate use lists in the IR but it
was run before setPhiValues, when some phi inputs are still
stored in a data structure on the side, instead of being
real uses in the IR. The effect was that a phi that should
be using the original compare result would now get an
inverted result instead.

Fix this by moving simplifyConditions after setPhiValues.

Differential Revision: https://reviews.llvm.org/D120312
2022-02-22 17:36:20 +00:00
..
AMDGPU [StructurizeCFG] Clean up some boolean not instructions 2022-02-01 09:35:37 +00:00
workarounds
branch-on-argument.ll
bug36015.ll [StructurizeCFG] Clean up some boolean not instructions 2022-02-01 09:35:37 +00:00
interleaved-loop-order.ll
invert-condition.ll [StructurizeCFG] Fix boolean not bug 2022-02-22 17:36:20 +00:00
invert-constantexpr.ll [StructurizeCFG] Clean up some boolean not instructions 2022-02-01 09:35:37 +00:00
loop-continue-phi.ll
loop-multiple-exits.ll
nested-loop-order.ll
nested-loop-subregion.ll
no-branch-to-entry.ll
one-loop-multiple-backedges.ll [StructurizeCFG] Clean up some boolean not instructions 2022-02-01 09:35:37 +00:00
post-order-traversal-bug.ll [StructurizeCFG] Clean up some boolean not instructions 2022-02-01 09:35:37 +00:00
rebuild-ssa-infinite-loop-inseltpoison.ll
rebuild-ssa-infinite-loop.ll
switch.ll