diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-17 18:26:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-17 18:26:56 +0000 |
commit | 5aba6ae3b39a6cfc5874d6073cfa0ca0d787df95 (patch) | |
tree | 6186bf37b4e3db6dca497374c4fc41b32a4683cc /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 0fe88e3f329b4f06f96fb75a6df37c5820087439 (diff) | |
download | bcm5719-llvm-5aba6ae3b39a6cfc5874d6073cfa0ca0d787df95.tar.gz bcm5719-llvm-5aba6ae3b39a6cfc5874d6073cfa0ca0d787df95.zip |
Enable global address legalization, fixing a todo and allowing the removal
of some code. This exposes the implicit load from the stubs to the DAG, allowing
them to be optimized by the dag combiner. It also moves darwin specific stuff
out of the isel into the legalizer, and allows more to be moved to the .td file.
llvm-svn: 24397
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 3b7a706f52c..216372987f3 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -93,7 +93,7 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) // We want to legalize GlobalAddress into the appropriate instructions to // materialize the address. - //setOperationAction(ISD::GlobalAddress, MVT::i32, Custom); + setOperationAction(ISD::GlobalAddress, MVT::i32, Custom); if (TM.getSubtarget<PPCSubtarget>().is64Bit()) { // They also have instructions for converting between i64 and fp. |