X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTarget%2FSparc%2FSparcISelLowering.cpp;h=ef2806474a08e74ea772a2859e3021694f6afc07;hp=9c8a0a645253e325e621b449bac1b0f84307542d;hb=84477d139097de85c5d33053da2f8772ed0ef80b;hpb=cfb92b1bfd788e4be23adc491c4867728f71707d diff --git a/lib/Target/Sparc/SparcISelLowering.cpp b/lib/Target/Sparc/SparcISelLowering.cpp index 9c8a0a64525..ef2806474a0 100644 --- a/lib/Target/Sparc/SparcISelLowering.cpp +++ b/lib/Target/Sparc/SparcISelLowering.cpp @@ -854,11 +854,10 @@ SparcTargetLowering::LowerCall_32(TargetLowering::CallLoweringInfo &CLI, // Move from the float value from float registers into the // integer registers. - // TODO: this conversion is done in two steps, because - // f64->i64 conversion is done efficiently, and i64->v2i32 is - // basically a no-op. But f64->v2i32 is NOT done efficiently - // for some reason. - Arg = DAG.getNode(ISD::BITCAST, dl, MVT::i64, Arg); + // TODO: The f64 -> v2i32 conversion is super-inefficient for + // constants: it sticks them in the constant pool, then loads + // to a fp register, then stores to temp memory, then loads to + // integer registers. Arg = DAG.getNode(ISD::BITCAST, dl, MVT::v2i32, Arg); }