It can still be beneficial to do the optimization if the result of the compare is used by *another* select.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D73511
[AArch64][GlobalISel] Don't bail out of the select(cmp(a, b)) -> csel optimization with multiple users. ClosedPublic Authored by aemerson on Jan 27 2020, 4:06 PM.
Details Summary It can still be beneficial to do the optimization if the result of the compare is used by *another* select.
Diff Detail
Event TimelineHerald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka. · View Herald TranscriptJan 27 2020, 4:06 PM This revision is now accepted and ready to land.Jan 28 2020, 9:10 AM Closed by commit rG14c2cf8e1874: [AArch64][GlobalISel] Don't bail out of the select(cmp(a, b)) -> csel… (authored by aemerson). · Explain WhyJan 28 2020, 10:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 240714 llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/fold-fp-select.mir
|