AArch64 can fold some shift+extend operations on the RHS operand of
comparisons, so swap the operands if that makes sense.
This provides a fix for https://bugs.llvm.org/show_bug.cgi?id=38751
Paths
| Differential D53067
[AArch64] Swap comparison operands if that enables some folding. ClosedPublic Authored by aadg on Oct 10 2018, 2:41 AM.
Details Summary AArch64 can fold some shift+extend operations on the RHS operand of This provides a fix for https://bugs.llvm.org/show_bug.cgi?id=38751
Diff Detail
Event TimelineSjoerdMeijer added inline comments.
This revision is now accepted and ready to land.Oct 12 2018, 6:03 AM Closed by commit rL344439: [AArch64] Swap comparison operands if that enables some folding. (authored by aadg). · Explain WhyOct 13 2018, 12:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 169549 llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/trunk/test/CodeGen/AArch64/and-mask-removal.ll
llvm/trunk/test/CodeGen/AArch64/lack-of-signed-truncation-check.ll
llvm/trunk/test/CodeGen/AArch64/sat-add.ll
llvm/trunk/test/CodeGen/AArch64/signed-truncation-check.ll
llvm/trunk/test/CodeGen/AArch64/swap-compare-operands.ll
|