This is split off from D42948 and includes just the cases that constant fold to true or false. It also includes some refactoring to keep predicate checks together.
This supports things like
(setcc uge X, 0) -> true
Paths
| Differential D43489
[SelectionDAG] Support known true/false SimplifySetCC cases for comparing against vector splats of constants. ClosedPublic Authored by craig.topper on Feb 19 2018, 2:58 PM.
Details Summary This is split off from D42948 and includes just the cases that constant fold to true or false. It also includes some refactoring to keep predicate checks together. This supports things like (setcc uge X, 0) -> true
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 20 2018, 1:18 PM Closed by commit rL325627: [SelectionDAG] Support known true/false SimplifySetCC cases for comparing… (authored by ctopper). · Explain WhyFeb 20 2018, 1:50 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 134980 lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/avx512-mask-op.ll
test/CodeGen/X86/avx512-schedule.ll
test/CodeGen/X86/vector-compare-simplify.ll
|