summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-09 17:32:47 +0000
committerChris Lattner <sabre@nondot.org>2005-12-09 17:32:47 +0000
commit268d457b6991edd46fe12cba6ebd7468c7762ae3 (patch)
treefbd0b3ab2f9fba76d1fbf6cf5c5d27b7b961e9c1 /llvm/lib/CodeGen
parentc1f911a2387d0b8351b4a590cfb2febab7ee4862 (diff)
downloadbcm5719-llvm-268d457b6991edd46fe12cba6ebd7468c7762ae3.tar.gz
bcm5719-llvm-268d457b6991edd46fe12cba6ebd7468c7762ae3.zip
Teach legalize how to promote sext_inreg to fix a problem Andrew pointed
out to me. llvm-svn: 24644
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 41ba14205da..c66748729db 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2404,6 +2404,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
}
break;
+ case ISD::SIGN_EXTEND_INREG:
+ Result = PromoteOp(Node->getOperand(0));
+ Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result,
+ Node->getOperand(1));
+ break;
case ISD::FP_TO_SINT:
case ISD::FP_TO_UINT:
switch (getTypeAction(Node->getOperand(0).getValueType())) {
OpenPOWER on IntegriCloud