projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f62b7fc
)
use range-based for-loop; NFC
author
Sanjay Patel
<spatel@rotateright.com>
Tue, 5 May 2015 21:20:52 +0000
(21:20 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Tue, 5 May 2015 21:20:52 +0000
(21:20 +0000)
llvm-svn: 236544
llvm/lib/Target/X86/X86VZeroUpper.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86VZeroUpper.cpp
b/llvm/lib/Target/X86/X86VZeroUpper.cpp
index
99ba4c0
..
6925b27
100644
(file)
--- a/
llvm/lib/Target/X86/X86VZeroUpper.cpp
+++ b/
llvm/lib/Target/X86/X86VZeroUpper.cpp
@@
-281,8
+281,8
@@
bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) {
// Process all blocks. This will compute block exit states, record the first
// unguarded call in each block, and add successors of dirty blocks to the
// DirtySuccessors list.
- for (Machine
Function::iterator I = MF.begin(), E = MF.end(); I != E; ++I
)
- processBasicBlock(
*I
);
+ for (Machine
BasicBlock &MBB : MF
)
+ processBasicBlock(
MBB
);
// If any YMM regs are live in to this function, add the entry block to the
// DirtySuccessors list