aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-04-29 13:40:41 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-04-29 13:40:41 -0700
commitca067f13c6c365b172afc2c500b4d08b5d06cdd5 (patch)
tree77e025180a66914a3cb8d25a3be5027d9f443445 /lib/Target
parent869c814f1915eaeff67e2e48ad7e894ec837a630 (diff)
relooper update
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/JSBackend/Relooper.cpp5
1 files changed, 5 insertions, 0 deletions
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 <llvm/Support/raw_ostream.h>
+//using namespace llvm;
+
template <class T, class U> 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,