mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Revert "[C++11] Add predecessors(BasicBlock *) / successors(BasicBlock *) iterator ranges."
This reverts commit r213474 (and r213475), which causes a miscompile on a stage2 LTO build. I'll reply on the list in a moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -145,7 +145,9 @@ bool LoopInstSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||
// bodies of subloops. We visit the headers of loops so that we can process
|
||||
// their phis, but we contract the rest of the subloop body and only follow
|
||||
// edges leading back to the original loop.
|
||||
for (BasicBlock *SuccBB : successors(BB)) {
|
||||
for (succ_iterator SI = succ_begin(BB), SE = succ_end(BB); SI != SE;
|
||||
++SI) {
|
||||
BasicBlock *SuccBB = *SI;
|
||||
if (!Visited.insert(SuccBB))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user