Skip to content

Commit aa83856

Browse files
committed
chore(InstCombine): add comments describing the pattern
1 parent 4e423c6 commit aa83856

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,6 +3119,8 @@ static Value *matchOrConcat(Instruction &Or, InstCombiner::BuilderTy &Builder) {
31193119
match(UpperSrc, m_BitReverse(m_Value(UpperBRev))))
31203120
return ConcatIntrinsicCalls(Intrinsic::bitreverse, UpperBRev, LowerBRev);
31213121

3122+
// 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)
31223124
Value *X;
31233125
if (match(LowerSrc, m_SExt(m_Value(X))) &&
31243126
match(UpperSrc,

0 commit comments

Comments
 (0)