Skip to content

Commit 146c414

Browse files
andjo403rlavaee
authored andcommitted
[InstCombine] Create Icmp in canonical form (NFC) (llvm#146266)
1 parent fff51de commit 146c414

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)