[llvm-commits] CVS: llvm/lib/Target/Sparc/Sparc.cpp
Vikram Adve
vadve at cs.uiuc.edu
Fri Aug 1 10:54:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
Sparc.cpp updated: 1.70 -> 1.71
---
Log message:
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).
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.70 llvm/lib/Target/Sparc/Sparc.cpp:1.71
--- llvm/lib/Target/Sparc/Sparc.cpp:1.70 Tue Jul 29 14:58:00 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp Fri Aug 1 10:53:24 2003
@@ -161,6 +161,9 @@
// 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));
More information about the llvm-commits
mailing list