Skip to content

Commit a19889c

Browse files
committed
Fix formatting
1 parent 41a9445 commit a19889c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,8 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
16551655
return visitFree(CI, FreedOp);
16561656

16571657
if (Function *F = CI.getCalledFunction()) {
1658-
if (F->getIntrinsicID() == Intrinsic::umin || F->getIntrinsicID() == Intrinsic::umax) {
1658+
if (F->getIntrinsicID() == Intrinsic::umin ||
1659+
F->getIntrinsicID() == Intrinsic::umax) {
16591660
for (Value *Arg : CI.args()) {
16601661
auto *SI = dyn_cast<SelectInst>(Arg);
16611662
if (!SI)
@@ -1665,8 +1666,11 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
16651666
auto *FalseC = dyn_cast<Constant>(SI->getFalseValue());
16661667

16671668
// Block only if the select is masking, e.g. select(cond, val, -1)
1668-
if ((TrueC && TrueC->isAllOnesValue()) || (FalseC && FalseC->isAllOnesValue())) {
1669-
LLVM_DEBUG(dbgs() << "InstCombine: skipping umin/umax folding for masked select\n");
1669+
if ((TrueC && TrueC->isAllOnesValue()) ||
1670+
(FalseC && FalseC->isAllOnesValue())) {
1671+
LLVM_DEBUG(
1672+
dbgs()
1673+
<< "InstCombine: skipping umin/umax folding for masked select\n");
16701674
return nullptr;
16711675
}
16721676
}

0 commit comments

Comments
 (0)