mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
simplify some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef98691ca3
commit
408c428096
@ -3435,14 +3435,11 @@ SDOperand SelectionDAGLegalize::ExpandLegalINT_TO_FP(bool isSigned,
|
||||
// word offset constant for Hi/Lo address computation
|
||||
SDOperand WordOff = DAG.getConstant(sizeof(int), TLI.getPointerTy());
|
||||
// set up Hi and Lo (into buffer) address based on endian
|
||||
SDOperand Hi, Lo;
|
||||
if (TLI.isLittleEndian()) {
|
||||
Hi = DAG.getNode(ISD::ADD, TLI.getPointerTy(), StackSlot, WordOff);
|
||||
Lo = StackSlot;
|
||||
} else {
|
||||
Hi = StackSlot;
|
||||
Lo = DAG.getNode(ISD::ADD, TLI.getPointerTy(), StackSlot, WordOff);
|
||||
}
|
||||
SDOperand Hi = StackSlot;
|
||||
SDOperand Lo = DAG.getNode(ISD::ADD, TLI.getPointerTy(), StackSlot,WordOff);
|
||||
if (TLI.isLittleEndian())
|
||||
std::swap(Hi, Lo);
|
||||
|
||||
// if signed map to unsigned space
|
||||
SDOperand Op0Mapped;
|
||||
if (isSigned) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user