Only do so if we don't create more instructions, so either both
rotates have one use or one of the rotates has one use and both AX
and AY are constant.
Proof: https://alive2.llvm.org/ce/z/rVmJgz
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
3480 | Doesn't this also work if the rotates are on different values? https://alive2.llvm.org/ce/z/rVmJgz |
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
3480 | Good catch. |
Doesn't this also work if the rotates are on different values? https://alive2.llvm.org/ce/z/rVmJgz