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:
8a25eab
)
[NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches()
author
Kang Zhang
<shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 16:23:17 +0000
(16:23 +0000)
committer
Kang Zhang
<shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 16:23:17 +0000
(16:23 +0000)
llvm-svn: 368514
llvm/lib/CodeGen/MachineBlockPlacement.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index
c34166d
..
2f4060a
100644
(file)
--- a/
llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/
llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@
-2790,7
+2790,7
@@
void MachineBlockPlacement::optimizeBranches() {
// Update the CFG.
for (MachineBasicBlock::pred_iterator PI = TBB->pred_begin(),
- PE = TBB->pred_end(); PI != PE;
PI++
)
+ PE = TBB->pred_end(); PI != PE;
++PI
)
(*PI)->ReplaceUsesOfBlockWith(TBB, ChainBB);
for (MachineBasicBlock *Succ : TBB->successors())