projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20154c
)
simplify some code.
author
Chris Lattner
<sabre@nondot.org>
Sat, 20 Oct 2007 04:09:48 +0000
(
04:09
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 20 Oct 2007 04:09:48 +0000
(
04:09
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43198
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
index dca937d562fbf331762f4b658eae91fabc98efce..81f55f2ffb4fd569edb4162b48511cfa229f9607 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
@@
-668,7
+668,7
@@
SDOperand DAGTypeLegalizer::PromoteResult_SRL(SDNode *N) {
// The input value must be properly zero extended.
MVT::ValueType VT = N->getValueType(0);
MVT::ValueType NVT = TLI.getTypeToTransformTo(VT);
- SDOperand Res =
DAG.getZeroExtendInReg(GetPromotedOp(N->getOperand(0)), VT
);
+ SDOperand Res =
GetPromotedZExtOp(N->getOperand(0)
);
return DAG.getNode(ISD::SRL, NVT, Res, N->getOperand(1));
}