We canonicalize rotate-right -> rotate-left in other places. Makes
sense to do so here as well.
Proof: https://alive2.llvm.org/ce/z/HL3TpK
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D152349
[InstCombine] Canonicalize (icmp eq/ne X, rotate(X)) to always use rotate-left ClosedPublic Authored by goldstein.w.n on Jun 7 2023, 1:15 AM.
Details Summary We canonicalize rotate-right -> rotate-left in other places. Makes
Diff Detail
Event Timelinegoldstein.w.n retitled this revision from [InstCombine] Transform (icmp eq/ne rotate(X,A0),rotate(X,A1)) -> (icmp eq/ne rotate(X,A0-A1)) to [InstCombine] Canonicalize (icmp eq/ne X, rotate(X)) to always use rotate-left.Jun 7 2023, 2:02 AM This revision is now accepted and ready to land.Jun 7 2023, 12:14 PM Closed by commit rG5189eff3459c: [InstCombine] Canonicalize (icmp eq/ne X, rotate(X)) to always use rotate-left (authored by goldstein.w.n). · Explain WhyJun 10 2023, 12:39 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 529406 llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-equality-rotate.ll
|