diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-10 04:33:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-10 04:33:47 +0000 |
commit | 232ee95a09a583b7d66b90ee7ddf7fdb9c194a04 (patch) | |
tree | 2dab698c6b7defe1b00379c40266f9caa3914a5c /lib/CodeGen | |
parent | 45278e37eb9823ceabdaab6b27dabf3b5dcdcede (diff) | |
download | llvm-232ee95a09a583b7d66b90ee7ddf7fdb9c194a04.tar.gz llvm-232ee95a09a583b7d66b90ee7ddf7fdb9c194a04.tar.bz2 llvm-232ee95a09a583b7d66b90ee7ddf7fdb9c194a04.tar.xz |
Until we have a dag combiner, promote using zextload's instead of extloads.
This gives the optimizer a bit of information about the top-part of the
value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 1fcaa723e2..b551eebf7c 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1355,7 +1355,8 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) { case ISD::LOAD: Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain. Tmp2 = LegalizeOp(Node->getOperand(1)); // Legalize the pointer. - Result = DAG.getNode(ISD::EXTLOAD, NVT, Tmp1, Tmp2, VT); + // FIXME: When the DAG combiner exists, change this to use EXTLOAD! + Result = DAG.getNode(ISD::ZEXTLOAD, NVT, Tmp1, Tmp2, VT); // Remember that we legalized the chain. AddLegalizedOperand(Op.getValue(1), Result.getValue(1)); |