[llvm] [InstCombine] Resolve TODO: Remove one-time check if other logic operand (Y) is constant (PR #77973)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 09:15:51 PST 2024


================
@@ -727,8 +729,8 @@ static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift,
     IC.InsertNewInstWith(Neg, I->getIterator());
     unsigned TypeWidth = I->getType()->getScalarSizeInBits();
     APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits);
-    auto *And = BinaryOperator::CreateAnd(Neg,
----------------
jrtc27 wrote:

Ditto

https://github.com/llvm/llvm-project/pull/77973


More information about the llvm-commits mailing list