aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-13 02:41:52 +0000
committerChris Lattner <sabre@nondot.org>2005-04-13 02:41:52 +0000
commit6ac614a4f274bab9f08f70fda86aeb711952e828 (patch)
tree4449bd1529a4afe782629cc1430fbbd6529810b1 /lib
parentc951d87fe99ab464b933af7170de6f2e51953907 (diff)
Remove special handling of ZERO_EXTEND_INREG. This pessimizes code, causing
things like this: mov r9 = 65535;; and r8 = r8, r9;; To be emitted instead of: zxt2 r8 = r8;; To get this back, the selector for ISD::AND should recognize this case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/IA64/IA64ISelPattern.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Target/IA64/IA64ISelPattern.cpp b/lib/Target/IA64/IA64ISelPattern.cpp
index 5a743996ae..c2623d020c 100644
--- a/lib/Target/IA64/IA64ISelPattern.cpp
+++ b/lib/Target/IA64/IA64ISelPattern.cpp
@@ -1304,23 +1304,6 @@ pC = pA OR pB
return Result;
}
- case ISD::ZERO_EXTEND_INREG: {
- Tmp1 = SelectExpr(N.getOperand(0));
- MVTSDNode* MVN = dyn_cast<MVTSDNode>(Node);
- switch(MVN->getExtraValueType())
- {
- default:
- Node->dump();
- assert(0 && "don't know how to zero extend this type");
- break;
- case MVT::i8: Opc = IA64::ZXT1; break;
- case MVT::i16: Opc = IA64::ZXT2; break;
- case MVT::i32: Opc = IA64::ZXT4; break;
- }
- BuildMI(BB, Opc, 1, Result).addReg(Tmp1);
- return Result;
- }
-
case ISD::SIGN_EXTEND_INREG: {
Tmp1 = SelectExpr(N.getOperand(0));
MVTSDNode* MVN = dyn_cast<MVTSDNode>(Node);