forked from OSchip/llvm-project
[VPlan] Inline variable into assertion. NFC.
Avoids a warning in release builds llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp:311:14: warning: unused variable 'BrCond' [-Wunused-variable] Value *BrCond = Br->getCondition();
This commit is contained in:
parent
180bae08a0
commit
6b7c186390
|
@ -307,11 +307,9 @@ VPBasicBlock *PlainCFGBuilder::buildPlainCFG() {
|
||||||
|
|
||||||
// Get VPBB's condition bit.
|
// Get VPBB's condition bit.
|
||||||
assert(isa<BranchInst>(TI) && "Unsupported terminator!");
|
assert(isa<BranchInst>(TI) && "Unsupported terminator!");
|
||||||
auto *Br = cast<BranchInst>(TI);
|
|
||||||
Value *BrCond = Br->getCondition();
|
|
||||||
// Look up the branch condition to get the corresponding VPValue
|
// Look up the branch condition to get the corresponding VPValue
|
||||||
// representing the condition bit in VPlan (which may be in another VPBB).
|
// representing the condition bit in VPlan (which may be in another VPBB).
|
||||||
assert(IRDef2VPValue.count(BrCond) &&
|
assert(IRDef2VPValue.count(cast<BranchInst>(TI)->getCondition()) &&
|
||||||
"Missing condition bit in IRDef2VPValue!");
|
"Missing condition bit in IRDef2VPValue!");
|
||||||
|
|
||||||
// Link successors.
|
// Link successors.
|
||||||
|
|
Loading…
Reference in New Issue