summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-17 18:26:56 +0000
committerChris Lattner <sabre@nondot.org>2005-11-17 18:26:56 +0000
commit5aba6ae3b39a6cfc5874d6073cfa0ca0d787df95 (patch)
tree6186bf37b4e3db6dca497374c4fc41b32a4683cc /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent0fe88e3f329b4f06f96fb75a6df37c5820087439 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud