[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 23 15:46:02 PDT 2003


Changes in directory llvm/lib/CWriter:

Writer.cpp updated: 1.108 -> 1.109

---
Log message:

Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBE


---
Diffs of the changes:

Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.108 llvm/lib/CWriter/Writer.cpp:1.109
--- llvm/lib/CWriter/Writer.cpp:1.108	Wed Jul 23 10:22:15 2003
+++ llvm/lib/CWriter/Writer.cpp	Wed Jul 23 15:45:31 2003
@@ -91,7 +91,8 @@
       // emit it inline where it would go.
       if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
           isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) || 
-          isa<LoadInst>(I)) // Don't inline a load across a store!
+          isa<LoadInst>(I) || isa<VarArgInst>(I))
+        // Don't inline a load across a store or other bad things!
         return false;
 
       // Only inline instruction it it's use is in the same BB as the inst.





More information about the llvm-commits mailing list