Skip to content

Commit 68356be

Browse files
committed
restore use of ProfcheckDisableMeatadataFixes
1 parent 9acdfbd commit 68356be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,9 @@ Value *InstCombinerImpl::SimplifySelectsFeedingBinaryOp(BinaryOperator &I,
13631363
if (!LHSIsSelect && !RHSIsSelect)
13641364
return nullptr;
13651365

1366-
SelectInst *SI = cast<SelectInst>(LHSIsSelect ? LHS : RHS);
1366+
SelectInst *SI = ProfcheckDisableMetadataFixes
1367+
? nullptr
1368+
: cast<SelectInst>(LHSIsSelect ? LHS : RHS);
13671369

13681370
FastMathFlags FMF;
13691371
BuilderTy::FastMathFlagGuard Guard(Builder);

0 commit comments

Comments
 (0)