[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Sat Jan 6 22:58:20 PST 2007



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.585 -> 1.586
---
Log message:

relax some types


---
Diffs of the changes:  (+2 -3)

 InstructionCombining.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.585 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.586
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.585	Sat Jan  6 13:53:32 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Jan  7 00:58:05 2007
@@ -3552,8 +3552,7 @@
     FnName = "llvm.bswap.i64";
   else
     assert(0 && "Unknown integer type!");
-  Function *F = M->getOrInsertFunction(FnName, I.getType(), I.getType(), NULL);
-  
+  Constant *F = M->getOrInsertFunction(FnName, I.getType(), I.getType(), NULL);
   return new CallInst(F, V);
 }
 
@@ -6953,7 +6952,7 @@
             Name = "llvm.memcpy.i32";
           else
             Name = "llvm.memcpy.i64";
-          Function *MemCpy = M->getOrInsertFunction(Name,
+          Constant *MemCpy = M->getOrInsertFunction(Name,
                                      CI.getCalledFunction()->getFunctionType());
           CI.setOperand(0, MemCpy);
           Changed = true;






More information about the llvm-commits mailing list