[PATCH 2/2] r600: Clear visited structure before running.

Jan Vesely jan.vesely at rutgers.edu
Sat Feb 28 10:16:38 PST 2015


Fixes random crashes in for-loop piglit.

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 lib/Target/R600/AMDILCFGStructurizer.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Target/R600/AMDILCFGStructurizer.cpp b/lib/Target/R600/AMDILCFGStructurizer.cpp
index 18effba..d72de27 100644
--- a/lib/Target/R600/AMDILCFGStructurizer.cpp
+++ b/lib/Target/R600/AMDILCFGStructurizer.cpp
@@ -167,6 +167,7 @@ public:
     TRI = &TII->getRegisterInfo();
     DEBUG(MF.dump(););
     OrderedBlks.clear();
+    Visited.clear();
     FuncRep = &MF;
     MLI = &getAnalysis<MachineLoopInfo>();
     DEBUG(dbgs() << "LoopInfo:\n"; PrintLoopinfo(*MLI););
-- 
2.1.0




More information about the llvm-commits mailing list