llvm-project/llvm/test/Transforms/PhaseOrdering
Sanjay Patel cc88445a91 [InstCombine] canonicalize 'icmp (trunc X), C' to 'icmp (X & Mask), C'
I looked at canonicalizing in the other direction, but that causes
many potential regressions and infinite loops because we already
(possibly wrongly) canonicalize "trunc X to i1" into an and+icmp.

This has a data layout restriction to avoid creating illegal
mask instructions, but we could remove that if we can show
that the backend can undo this when needed.

The motivating example from issue #56119 is modeled by the
PhaseOrdering test.
2022-06-30 15:51:39 -04:00
..
AArch64 [ValueTracking] Enable -branch-on-poison-as-ub by default 2022-06-01 10:46:06 +02:00
ARM Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
X86 [IR] Enable opaque pointers by default 2022-06-02 09:40:56 +02:00
2010-03-22-empty-baseclass.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
PR6627.ll
assume-explosion.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
basic.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
bitfield-bittests.ll
cmp-logic.ll [InstCombine] canonicalize 'icmp (trunc X), C' to 'icmp (X & Mask), C' 2022-06-30 15:51:39 -04:00
d83507-knowledge-retention-bug.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
dce-after-argument-promotion.ll [Pipelines] Add a test how DCE works after ArgumentPromotion 2022-06-30 12:56:08 +03:00
deletion-of-loops-that-became-side-effect-free.ll
expect.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
fast-basictest.ll Split fast-basictest.ll according to passes responsible for optimizations 2022-02-04 12:20:10 +03:00
fast-reassociate-gvn.ll Split fast-basictest.ll according to passes responsible for optimizations 2022-02-04 12:20:10 +03:00
gdce.ll
globalaa-retained.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
inlining-alignment-assumptions.ll
instcombine-sroa-inttoptr.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
lifetime-sanitizer.ll
loop-rotation-vs-common-code-hoisting.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
lto-licm.ll
min-max-abs-cse.ll [PhaseOrdering][x86] add TODO comments to test files; NFC 2022-03-10 08:10:28 -05:00
minmax.ll [InstCombine] Canonicalize SPF to min/max intrinsics 2022-02-24 09:01:20 +01:00
openmp-opt-module.ll
partialord-ule.ll
pr32544.ll
pr36760.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
pr39116.ll
pr39282.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
pr40750.ll
pr44461-br-to-switch-rotate.ll
pr45682.ll
pr45687.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
reassociate-after-unroll.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
reassociate-gvn-bdce.ll
reassociate-instcombine.ll
recompute-globalsaa.ll [GlobalOpt] Perform store->dominated load forwarding for stored once globals 2022-06-24 09:09:26 -07:00
rotate.ll
scev-custom-dl.ll
scev.ll
simplifycfg-options.ll
simplifycfg-switch-lowering-vs-correlatedpropagation.ll [PhaseOrdering] Remove RUN lines for legacy PM (NFC) 2022-04-21 14:43:00 +02:00
two-shifts-by-sext.ll
unsigned-multiply-overflow-check.ll Revert "[NFCI] Regenerate PhaseOrdering test checks" 2022-04-04 15:30:57 +05:00
vector-select.ll
vector-trunc-inseltpoison.ll
vector-trunc.ll