forked from OSchip/llvm-project
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
This commit is contained in:
parent
fa171f11b8
commit
f878f75d46
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue