Skip to content

Commit

Permalink
[ExpandMemCmp] Use getAllOnesValue()
Browse files Browse the repository at this point in the history
Split out from #80309.
  • Loading branch information
nikic committed Aug 12, 2024
1 parent 3b27fce commit 06f64e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/ExpandMemCmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ void MemCmpExpansion::emitMemCmpResultBlock() {
ResBlock.PhiSrc2);

Value *Res =
Builder.CreateSelect(Cmp, ConstantInt::get(Builder.getInt32Ty(), -1),
Builder.CreateSelect(Cmp, Constant::getAllOnesValue(Builder.getInt32Ty()),
ConstantInt::get(Builder.getInt32Ty(), 1));

PhiRes->addIncoming(Res, ResBlock.BB);
Expand Down

0 comments on commit 06f64e8

Please sign in to comment.