[llvm] [IR] Add disjoint flag for Or instructions. (PR #72583)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 05:48:40 PST 2023
================
@@ -252,8 +255,11 @@ Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
return I->getOperand(1);
// If the RHS is a constant, see if we can simplify it.
- if (ShrinkDemandedConstant(I, 1, DemandedMask))
+ if (ShrinkDemandedConstant(I, 1, DemandedMask)) {
----------------
nikic wrote:
As long as this sticks with shrinking only, we shouldn't have to drop flags here. (It can only get "more" disjoint.)
https://github.com/llvm/llvm-project/pull/72583
More information about the llvm-commits
mailing list