[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Reid Spencer reid at x10sys.com
Mon Dec 11 17:17:59 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.428 -> 1.429
---
Log message:

Change inferred cast creation calls to more specific cast creations.


---
Diffs of the changes:  (+1 -1)

 LegalizeDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.428 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.429
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.428	Mon Dec 11 13:27:14 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Mon Dec 11 19:17:40 2006
@@ -790,7 +790,7 @@
           // Only do this if the target has a native EXTLOAD instruction from
           // f32.
           TLI.isLoadXLegal(ISD::EXTLOAD, MVT::f32)) {
-        LLVMC = cast<ConstantFP>(ConstantExpr::getCast(LLVMC, Type::FloatTy));
+        LLVMC = cast<ConstantFP>(ConstantExpr::getFPCast(LLVMC, Type::FloatTy));
         VT = MVT::f32;
         Extend = true;
       }






More information about the llvm-commits mailing list