mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
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
This commit is contained in:
@@ -161,6 +161,9 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
|
|||||||
// FIXME: implement the switch instruction in the instruction selector.
|
// FIXME: implement the switch instruction in the instruction selector.
|
||||||
PM.add(createLowerSwitchPass());
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
|
// decompose multi-dimensional array references into single-dim refs
|
||||||
|
PM.add(createDecomposeMultiDimRefsPass());
|
||||||
|
|
||||||
// Construct and initialize the MachineFunction object for this fn.
|
// Construct and initialize the MachineFunction object for this fn.
|
||||||
PM.add(createMachineCodeConstructionPass(*this));
|
PM.add(createMachineCodeConstructionPass(*this));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user