We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f4faa7 commit 2d7bb60Copy full SHA for 2d7bb60
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3896,8 +3896,8 @@ Instruction *InstCombinerImpl::foldNot(BinaryOperator &I) {
3896
if (match(NotVal, m_AShr(m_Not(m_Value(X)), m_Value(Y))))
3897
return BinaryOperator::CreateAShr(X, Y);
3898
3899
- // Bit-hack form of a signbit test:
3900
- // iN ~X >>s (N-1) --> sext i1 (X > -1) to iN
+ // Bit-hack form of a signbit test for iN type:
+ // ~(X >>s (N - 1)) --> sext i1 (X > -1) to iN
3901
unsigned FullShift = Ty->getScalarSizeInBits() - 1;
3902
if (match(NotVal, m_OneUse(m_AShr(m_Value(X), m_SpecificInt(FullShift))))) {
3903
Value *IsNotNeg = Builder.CreateIsNotNeg(X, "isnotneg");
0 commit comments