Skip to content

Commit 57792b5

Browse files
committed
update comments
1 parent 635e8bd commit 57792b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3120,7 +3120,9 @@ static Value *matchOrConcat(Instruction &Or, InstCombiner::BuilderTy &Builder) {
31203120
return ConcatIntrinsicCalls(Intrinsic::bitreverse, UpperBRev, LowerBRev);
31213121

31223122
// iX ext split: extending or(zext(x),shl(zext(y),bw/2) pattern
3123-
// to consume sext/ashr: or(zext(sext(x)),shl(zext(sext(ashr(x))),bw/2)
3123+
// to consume sext/ashr:
3124+
// or(zext(sext(x)),shl(zext(sext(ashr(x,xbw-1))),bw/2)
3125+
// or(zext(x),shl(zext(ashr(x,xbw-1)),bw/2)
31243126
Value *X;
31253127
if (match(LowerSrc, m_SExtOrSelf(m_Value(X))) &&
31263128
match(UpperSrc,

0 commit comments

Comments
 (0)