Skip to content

Commit 3d4f9bf

Browse files
committed
[InstCombine] Address review comments. NFC.
1 parent 6c08d52 commit 3d4f9bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ static Value *foldLogOpOfMaskedICmps(Value *LHS, Value *RHS, bool IsAnd,
612612
return LHS;
613613
if (NewMask == *ConstD) {
614614
if (IsLogical) {
615-
if (auto *ICmp = dyn_cast<ICmpInst>(RHS))
616-
ICmp->setSameSign(false);
615+
if (auto *RHSI = dyn_cast<Instruction>(RHS))
616+
RHSI->dropPoisonGeneratingFlags();
617617
}
618618
return RHS;
619619
}

0 commit comments

Comments
 (0)