mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 22:52:48 +00:00
Remove more dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7a4c0f7c4
commit
3dd68151dc
@ -1320,23 +1320,6 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
BuildMI(BB, Opc, 1, Result).addReg(Tmp2);
|
||||
return Result;
|
||||
|
||||
case ISD::FP_ROUND:
|
||||
// Truncate from double to float by storing to memory as float,
|
||||
// then reading it back into a register.
|
||||
|
||||
// Create as stack slot to use.
|
||||
// FIXME: This should automatically be made by the Legalizer!
|
||||
Tmp1 = TLI.getTargetData().getFloatAlignment();
|
||||
Tmp2 = BB->getParent()->getFrameInfo()->CreateStackObject(4, Tmp1);
|
||||
|
||||
// Codegen the input.
|
||||
Tmp1 = SelectExpr(N.getOperand(0));
|
||||
|
||||
// Emit the store, then the reload.
|
||||
addFrameReference(BuildMI(BB, X86::FST32m, 5), Tmp2).addReg(Tmp1);
|
||||
addFrameReference(BuildMI(BB, X86::FLD32m, 5, Result), Tmp2);
|
||||
return Result;
|
||||
|
||||
case ISD::SINT_TO_FP:
|
||||
case ISD::UINT_TO_FP: {
|
||||
// FIXME: Most of this grunt work should be done by legalize!
|
||||
|
Loading…
x
Reference in New Issue
Block a user