mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add a note, this code should be moved to the dag combiner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ed32f6f8e
commit
06ac6ab938
@ -1260,6 +1260,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
|
|
||||||
// Turn 'store float 1.0, Ptr' -> 'store int 0x12345678, Ptr'
|
// Turn 'store float 1.0, Ptr' -> 'store int 0x12345678, Ptr'
|
||||||
// FIXME: We shouldn't do this for TargetConstantFP's.
|
// FIXME: We shouldn't do this for TargetConstantFP's.
|
||||||
|
// FIXME: move this to the DAG Combiner!
|
||||||
if (ConstantFPSDNode *CFP =dyn_cast<ConstantFPSDNode>(Node->getOperand(1))){
|
if (ConstantFPSDNode *CFP =dyn_cast<ConstantFPSDNode>(Node->getOperand(1))){
|
||||||
if (CFP->getValueType(0) == MVT::f32) {
|
if (CFP->getValueType(0) == MVT::f32) {
|
||||||
Tmp3 = DAG.getConstant(FloatToBits(CFP->getValue()), MVT::i32);
|
Tmp3 = DAG.getConstant(FloatToBits(CFP->getValue()), MVT::i32);
|
||||||
|
Loading…
Reference in New Issue
Block a user