[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 9 12:00:07 PST 2006
Changes in directory llvm/lib/Target/Sparc:
SparcTargetMachine.cpp updated: 1.41 -> 1.42
---
Log message:
Enable LSR by default for SPARC: it is a clear win.
---
Diffs of the changes: (+1 -4)
SparcTargetMachine.cpp | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/Target/Sparc/SparcTargetMachine.cpp
diff -u llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.41 llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.42
--- llvm/lib/Target/Sparc/SparcTargetMachine.cpp:1.41 Wed Feb 8 23:06:36 2006
+++ llvm/lib/Target/Sparc/SparcTargetMachine.cpp Thu Feb 9 13:59:55 2006
@@ -20,15 +20,12 @@
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/CommandLine.h"
#include <iostream>
using namespace llvm;
namespace {
// Register the target.
RegisterTarget<SparcTargetMachine> X("sparc", " SPARC");
-
- cl::opt<bool> EnableLSR("enable-sparc-lsr", cl::Hidden);
}
/// SparcTargetMachine ctor - Create an ILP32 architecture model
@@ -68,7 +65,7 @@
if (FileType != TargetMachine::AssemblyFile) return true;
// Run loop strength reduction before anything else.
- if (EnableLSR && !Fast) PM.add(createLoopStrengthReducePass());
+ if (!Fast) PM.add(createLoopStrengthReducePass());
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
More information about the llvm-commits
mailing list