Skip to content

Commit 9acdfbd

Browse files
committed
remove profdata assert
1 parent dfbd3f3 commit 9acdfbd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,11 +1402,6 @@ Value *InstCombinerImpl::SimplifySelectsFeedingBinaryOp(BinaryOperator &I,
14021402
Cond = A;
14031403
True = simplifyBinOp(Opcode, B, E, FMF, Q);
14041404
False = simplifyBinOp(Opcode, C, F, FMF, Q);
1405-
// Profile weights for both LHS and RHS should be the same because they have
1406-
// the same idempotent conditional.
1407-
assert(cast<SelectInst>(LHS)->getMetadata(LLVMContext::MD_prof) ==
1408-
cast<SelectInst>(RHS)->getMetadata(LLVMContext::MD_prof) &&
1409-
"LHS and RHS select statements have different metadata!");
14101405

14111406
if (LHS->hasOneUse() && RHS->hasOneUse()) {
14121407
if (False && !True)

0 commit comments

Comments
 (0)