[llvm] [InstCombine] Convert fshl(x, 0, y) to shl(x, and(y, BitWidth - 1)) when BitWidth is pow2 (PR #122362)
Amr Hesham via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 13:14:58 PST 2025
================
@@ -2229,6 +2229,19 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
return BitOp;
}
+ // fshal(X, 0, Y) --> shl(X, and(Y, BitWidth - 1))
----------------
AmrDeveloper wrote:
Thank you, Done
https://github.com/llvm/llvm-project/pull/122362
More information about the llvm-commits
mailing list