mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Make sure to expand all nodes, avoiding unintentional node duplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6980d8295f
commit
44d105b7fa
@ -2168,6 +2168,13 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) {
|
||||
|
||||
TargetLowering::ArgListTy Args;
|
||||
const Type *ArgTy = MVT::getTypeForValueType(Source.getValueType());
|
||||
|
||||
// Expand the source, then glue it back together for the call. We must expand
|
||||
// the source in case it is shared (this pass of legalize must traverse it).
|
||||
SDOperand SrcLo, SrcHi;
|
||||
ExpandOp(Source, SrcLo, SrcHi);
|
||||
Source = DAG.getNode(ISD::BUILD_PAIR, Source.getValueType(), SrcLo, SrcHi);
|
||||
|
||||
Args.push_back(std::make_pair(Source, ArgTy));
|
||||
|
||||
// We don't care about token chains for libcalls. We just use the entry
|
||||
|
Loading…
x
Reference in New Issue
Block a user