diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-05 06:49:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-05 06:49:44 +0000 |
commit | f878f75d4675230d173c10c9c06163133d68a047 (patch) | |
tree | 3506e40700173081cb090fad8a8961352da35270 | |
parent | fa171f11b89aae10348fc5157f6565a22790f21a (diff) | |
download | bcm5719-llvm-f878f75d4675230d173c10c9c06163133d68a047.tar.gz bcm5719-llvm-f878f75d4675230d173c10c9c06163133d68a047.zip |
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!!!
llvm-svn: 18534
-rw-r--r-- | llvm/lib/Target/CBackend/Writer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp index d71a568d288..40800b9d434 100644 --- a/llvm/lib/Target/CBackend/Writer.cpp +++ b/llvm/lib/Target/CBackend/Writer.cpp @@ -85,10 +85,15 @@ namespace { 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; |