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 | 3150e2de93563825943ade523272acdd93ef1bcf (patch) | |
tree | 65726d70e476728baeed3f98062fa3d5fe456fd1 /lib/Target/CBackend/Writer.cpp | |
parent | bf90a5be711c572acad83061a3a965d4c48eecbd (diff) |
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!!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index d71a568d28..40800b9d43 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/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; |