mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 19:19:26 +00:00
Remove some dead code now that the dag combiner exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4cb5a1b896
commit
34f342e36f
@ -2428,21 +2428,6 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
|||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
case ISD::TRUNCATE:
|
case ISD::TRUNCATE:
|
||||||
// Fold TRUNCATE (LOAD P) into a smaller load from P.
|
|
||||||
// FIXME: This should be performed by the DAGCombiner.
|
|
||||||
if (isFoldableLoad(N.getOperand(0), SDOperand())) {
|
|
||||||
switch (N.getValueType()) {
|
|
||||||
default: assert(0 && "Unknown truncate!");
|
|
||||||
case MVT::i1:
|
|
||||||
case MVT::i8: Opc = X86::MOV8rm; break;
|
|
||||||
case MVT::i16: Opc = X86::MOV16rm; break;
|
|
||||||
}
|
|
||||||
X86AddressMode AM;
|
|
||||||
EmitFoldedLoad(N.getOperand(0), AM);
|
|
||||||
addFullAddress(BuildMI(BB, Opc, 4, Result), AM);
|
|
||||||
return Result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle cast of LARGER int to SMALLER int using a move to EAX followed by
|
// Handle cast of LARGER int to SMALLER int using a move to EAX followed by
|
||||||
// a move out of AX or AL.
|
// a move out of AX or AL.
|
||||||
switch (N.getOperand(0).getValueType()) {
|
switch (N.getOperand(0).getValueType()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user