From: Nate Begeman Date: Wed, 2 Aug 2006 05:29:40 +0000 (+0000) Subject: Disable LSR at -fast X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8f74680c78b1913fa280637e9f626d0d70f918ed;p=oota-llvm.git Disable LSR at -fast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29467 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 69e651f9954..90175acd1d6 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -91,7 +91,7 @@ bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out, FileType != TargetMachine::ObjectFile) return true; // Run loop strength reduction before anything else. - PM.add(createLoopStrengthReducePass(&TLInfo)); + if (!Fast) PM.add(createLoopStrengthReducePass(&TLInfo)); // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass());