mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=Off builds after D65958 and D70450
This commit is contained in:
parent
109f24d25c
commit
92bbe401b0
@ -366,8 +366,7 @@ BranchInst *Loop::getLoopGuardBranch() const {
|
||||
return nullptr;
|
||||
|
||||
BasicBlock *Preheader = getLoopPreheader();
|
||||
BasicBlock *Latch = getLoopLatch();
|
||||
assert(Preheader && Latch &&
|
||||
assert(Preheader && getLoopLatch() &&
|
||||
"Expecting a loop with valid preheader and latch");
|
||||
|
||||
// Loop should be in rotate form.
|
||||
|
@ -906,6 +906,7 @@ AArch64LoadStoreOpt::mergePairedInsns(MachineBasicBlock::iterator I,
|
||||
};
|
||||
forAllMIsUntilDef(*I, RegToRename, TRI, LdStLimit, UpdateMIs);
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
// Make sure the register used for renaming is not used between the paired
|
||||
// instructions. That would trash the content before the new paired
|
||||
// instruction.
|
||||
@ -919,6 +920,7 @@ AArch64LoadStoreOpt::mergePairedInsns(MachineBasicBlock::iterator I,
|
||||
}) &&
|
||||
"Rename register used between paired instruction, trashing the "
|
||||
"content");
|
||||
#endif
|
||||
}
|
||||
|
||||
// Insert our new paired instruction after whichever of the paired
|
||||
|
Loading…
x
Reference in New Issue
Block a user