summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-06 23:06:21 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-06 23:06:21 +0000
commit58ba50fea7d8a42c878cb8dc5f46303c5c92a58f (patch)
treeecabc7c6860f89dd5527ae67ac34f24033bbe5e2 /lib
parenteac56ac0da8afc0648e6eed28f59ce18eceb79d4 (diff)
downloadllvm-58ba50fea7d8a42c878cb8dc5f46303c5c92a58f.tar.gz
llvm-58ba50fea7d8a42c878cb8dc5f46303c5c92a58f.tar.bz2
llvm-58ba50fea7d8a42c878cb8dc5f46303c5c92a58f.tar.xz
* Renamed option from `nopreselect' to `nopreopt' since it disables more than
just PreSelection * Wrapped code at 80 columns * Added the DecomposeMultiDimRefs Pass to the JIT compilation path git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index a50e54d72b..8a75642f11 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -38,8 +38,8 @@ const TargetInstrDescriptor SparcMachineInstrDesc[] = {
// Command line options to control choice of code generation passes.
//---------------------------------------------------------------------------
-static cl::opt<bool> DisablePreSelect("nopreselect",
- cl::desc("Disable preselection pass"));
+static cl::opt<bool> DisablePreOpt("nopreopt",
+ cl::desc("Disable optimizations prior to instruction selection"));
static cl::opt<bool> DisableSched("nosched",
cl::desc("Disable local scheduling pass"));
@@ -171,10 +171,10 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
//so %fp+offset-8 and %fp+offset-16 are empty slots now!
PM.add(createStackSlotsPass(*this));
- // Specialize LLVM code for this target machine and then
- // run basic dataflow optimizations on LLVM code.
- if (!DisablePreSelect) {
+ if (!DisablePreOpt) {
+ // Specialize LLVM code for this target machine
PM.add(createPreSelectionPass(*this));
+ // Run basic dataflow optimizations on LLVM code
PM.add(createReassociatePass());
PM.add(createLICMPass());
PM.add(createGCSEPass());
@@ -182,7 +182,8 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
// If LLVM dumping after transformations is requested, add it to the pipeline
if (DumpInput)
- PM.add(new PrintFunctionPass("Input code to instr. selection: \n", &std::cerr));
+ PM.add(new PrintFunctionPass("Input code to instsr. selection:\n",
+ &std::cerr));
PM.add(createInstructionSelectionPass(*this));
@@ -233,6 +234,9 @@ bool UltraSparc::addPassesToJITCompile(PassManager &PM) {
// FIXME: implement the switch instruction in the instruction selector.
PM.add(createLowerSwitchPass());
+ // decompose multi-dimensional array references into single-dim refs
+ PM.add(createDecomposeMultiDimRefsPass());
+
// Construct and initialize the MachineFunction object for this fn.
PM.add(createMachineCodeConstructionPass(*this));