[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:40 PST 2024
================
@@ -517,6 +517,17 @@ static Decomposition decompose(Value *V,
return Result;
}
+ // shl nsw x, shift is mul nsw x, (1<<shift),
----------------
fhahn wrote:
nit: might be good to wrap the expressions in `()` or something else to separate them from the interleave text
https://github.com/llvm/llvm-project/pull/76961
More information about the llvm-commits
mailing list