Skip to content

Commit f21f2b4

Browse files
authored
[InstCombine] Create Icmp in canonical form (NFC) (#146266)
1 parent 2787759 commit f21f2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static Value *foldLogOpOfMaskedICmps(Value *LHS, Value *RHS, bool IsAnd,
681681
}
682682
Value *NewAnd = Builder.CreateAnd(A, BD);
683683
Value *CEVal = ConstantInt::get(A->getType(), CE);
684-
return Builder.CreateICmp(CC, CEVal, NewAnd);
684+
return Builder.CreateICmp(CC, NewAnd, CEVal);
685685
};
686686

687687
if (Mask & BMask_Mixed)

0 commit comments

Comments
 (0)