[llvm] [ConstraintElim] Decompose shl nsw for signed predicates (PR #76961)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 08:28:41 PST 2024
================
@@ -517,6 +517,17 @@ static Decomposition decompose(Value *V,
return Result;
}
+ // shl nsw x, shift is mul nsw x, (1<<shift),
+ // with the exception of shift == bw-1.
----------------
fhahn wrote:
nit: reflow comment?
https://github.com/llvm/llvm-project/pull/76961
More information about the llvm-commits
mailing list