From ca067f13c6c365b172afc2c500b4d08b5d06cdd5 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 29 Apr 2014 13:40:41 -0700 Subject: relooper update --- lib/Target/JSBackend/Relooper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/JSBackend/Relooper.cpp b/lib/Target/JSBackend/Relooper.cpp index ce9232d994..cd001df983 100644 --- a/lib/Target/JSBackend/Relooper.cpp +++ b/lib/Target/JSBackend/Relooper.cpp @@ -17,6 +17,10 @@ typedef std::string ministring; #endif +// uncomment these out to get LLVM errs() debugging support +//#include +//using namespace llvm; + template static bool contains(const T& container, const U& contained) { return container.count(contained); } @@ -202,6 +206,7 @@ void Block::Render(bool InLoop) { if (Fused) { PrintDebug("Fusing Multiple to Simple\n"); Parent->Next = Parent->Next->Next; + Fused->UseSwitch = false; // TODO: emit switches here Fused->RenderLoopPrefix(); // When the Multiple has the same number of groups as we have branches, -- cgit v1.2.3-18-g5258