If the pass changes _anything_ it must return true
authorChris Lattner <sabre@nondot.org>
Sat, 26 Jul 2003 23:05:37 +0000 (23:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 26 Jul 2003 23:05:37 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7344 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 1562c8483d807a785f319c7c590cf32e1e7eafbf..df911f6ba3a22dc263c5d5288ca76706ebce835c 100644 (file)
@@ -85,7 +85,8 @@ namespace {
       RegMap.clear();
       MBBMap.clear();
       F = 0;
-      return false;  // We never modify the LLVM itself.
+      // We always build a machine code representation for the function
+      return true;
     }
 
     virtual const char *getPassName() const {
index 1562c8483d807a785f319c7c590cf32e1e7eafbf..df911f6ba3a22dc263c5d5288ca76706ebce835c 100644 (file)
@@ -85,7 +85,8 @@ namespace {
       RegMap.clear();
       MBBMap.clear();
       F = 0;
-      return false;  // We never modify the LLVM itself.
+      // We always build a machine code representation for the function
+      return true;
     }
 
     virtual const char *getPassName() const {