summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-15 22:19:18 +0000
committerChris Lattner <sabre@nondot.org>2006-03-15 22:19:18 +0000
commitcad70c3e463c444570ee5b147ee68b0c92fc879d (patch)
tree95ab3f63c969395ba825c4b2315aa80b724a0be1 /llvm/lib/CodeGen
parentd348f5be2cd0fb9f229a9d5d1a2ab61563df8f7e (diff)
downloadbcm5719-llvm-cad70c3e463c444570ee5b147ee68b0c92fc879d.tar.gz
bcm5719-llvm-cad70c3e463c444570ee5b147ee68b0c92fc879d.zip
Add a note, this code should be moved to the dag combiner.
llvm-svn: 26787
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a6d74c85e7c..aeac2622d8a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1260,6 +1260,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
// Turn 'store float 1.0, Ptr' -> 'store int 0x12345678, Ptr'
// 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 (CFP->getValueType(0) == MVT::f32) {
Tmp3 = DAG.getConstant(FloatToBits(CFP->getValue()), MVT::i32);
OpenPOWER on IntegriCloud