[llvm] [InstCombine] Generalize `icmp (shl nuw C2, Y), C -> icmp Y, C3` (PR #104696)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 08:55:33 PDT 2024
================
@@ -2251,9 +2257,9 @@ static Instruction *foldICmpShlOne(ICmpInst &Cmp, Instruction *Shl,
Pred = ICmpInst::ICMP_UGT;
}
- unsigned CLog2 = C.logBase2();
+ unsigned CLog2 = Div.logBase2();
----------------
dtcxzyw wrote:
https://alive2.llvm.org/ce/z/XejB_d
https://github.com/llvm/llvm-project/pull/104696
More information about the llvm-commits
mailing list