projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d9ba7
)
[X86] Use range-based for loop. NFC
author
Craig Topper
<craig.topper@gmail.com>
Sun, 20 Dec 2015 18:41:57 +0000
(18:41 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sun, 20 Dec 2015 18:41:57 +0000
(18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256127
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrInfo.cpp
b/lib/Target/X86/X86InstrInfo.cpp
index 0a259226167f52b4a69655785a68beb6c259beca..fb937fdcb08af27ff24e86b45de66f4bb7a3cc36 100644
(file)
--- a/
lib/Target/X86/X86InstrInfo.cpp
+++ b/
lib/Target/X86/X86InstrInfo.cpp
@@
-2425,9
+2425,8
@@
bool X86InstrInfo::isSafeToClobberEFLAGS(MachineBasicBlock &MBB,
// It is safe to clobber EFLAGS at the end of a block of no successor has it
// live in.
if (Iter == E) {
- for (MachineBasicBlock::succ_iterator SI = MBB.succ_begin(),
- SE = MBB.succ_end(); SI != SE; ++SI)
- if ((*SI)->isLiveIn(X86::EFLAGS))
+ for (MachineBasicBlock *S : MBB.successors())
+ if (S->isLiveIn(X86::EFLAGS))
return false;
return true;
}