diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-08-01 15:53:24 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-08-01 15:53:24 +0000 |
commit | 248932b08a4f3058459d0ca31d2a82d26f591026 (patch) | |
tree | 7470832c992391bdfe457d7811f7873226d5edeb | |
parent | c7d58024f8bed33e0b3e795e51a62ec30248aff3 (diff) |
Put back the separate pass to decompose multi-dimensional references
since it is *necessary* for correct code generation. Only optional
transformations belong in the PreOpts pass (which needs to be renamed
from PreSelection to PreOpts).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7474 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/SparcV9TargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index ef6e2042fd..a50e54d72b 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -161,6 +161,9 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) // 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)); |