From: Chris Lattner Date: Sat, 26 Jul 2003 23:05:37 +0000 (+0000) Subject: If the pass changes _anything_ it must return true X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2a865b015b309778311d6026ae4f090e2b80afd0;p=oota-llvm.git If the pass changes _anything_ it must return true git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 1562c8483d8..df911f6ba3a 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -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 { diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 1562c8483d8..df911f6ba3a 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -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 {