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

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 4 22:49:56 PST 2004



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.212 -> 1.213
---
Log message:

Move lower intrinsics before FP constant emission, in case
intrinsic lowering ever introduces constants.

Rename local symbols before printing function bodies, fixing 255.vortex
with the CBE!!!


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

Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.212 llvm/lib/Target/CBackend/Writer.cpp:1.213
--- llvm/lib/Target/CBackend/Writer.cpp:1.212	Fri Dec  3 11:19:10 2004
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Dec  5 00:49:44 2004
@@ -85,10 +85,15 @@
     bool runOnFunction(Function &F) {
       LI = &getAnalysis<LoopInfo>();
 
+      // Get rid of intrinsics we can't handle.
+      lowerIntrinsics(F);
+
       // Output all floating point constants that cannot be printed accurately.
       printFloatingPointConstants(F);
-  
-      lowerIntrinsics(F);
+
+      // Ensure that no local symbols conflict with global symbols.
+      F.renameLocalSymbols();
+
       printFunction(F);
       FPConstantMap.clear();
       return false;






More information about the llvm-commits mailing list