mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Don't evaluate rend() on every iteration of the loop.
llvm-svn: 231837
This commit is contained in:
parent
63f263f727
commit
dad3b0ec71
@ -755,11 +755,13 @@ removeMMOsFromMemoryOperations(MachineBasicBlock::iterator MBBIStartPos,
|
||||
++CommonTailLen;
|
||||
|
||||
MachineBasicBlock::reverse_iterator MBBI = MBB->rbegin();
|
||||
MachineBasicBlock::reverse_iterator MBBIE = MBB->rend();
|
||||
MachineBasicBlock::reverse_iterator MBBICommon = MBBCommon.rbegin();
|
||||
MachineBasicBlock::reverse_iterator MBBIECommon = MBBCommon.rend();
|
||||
|
||||
while (CommonTailLen--) {
|
||||
assert(MBBI != MBB->rend() && "Reached BB end within common tail length!");
|
||||
assert(MBBI != MBBIE && "Reached BB end within common tail length!");
|
||||
(void)MBBIE;
|
||||
|
||||
if (MBBI->isDebugValue()) {
|
||||
++MBBI;
|
||||
|
Loading…
Reference in New Issue
Block a user