mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
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
This commit is contained in:
parent
bf90a5be71
commit
3150e2de93
@ -85,10 +85,15 @@ namespace {
|
|||||||
bool runOnFunction(Function &F) {
|
bool runOnFunction(Function &F) {
|
||||||
LI = &getAnalysis<LoopInfo>();
|
LI = &getAnalysis<LoopInfo>();
|
||||||
|
|
||||||
|
// Get rid of intrinsics we can't handle.
|
||||||
|
lowerIntrinsics(F);
|
||||||
|
|
||||||
// Output all floating point constants that cannot be printed accurately.
|
// Output all floating point constants that cannot be printed accurately.
|
||||||
printFloatingPointConstants(F);
|
printFloatingPointConstants(F);
|
||||||
|
|
||||||
lowerIntrinsics(F);
|
// Ensure that no local symbols conflict with global symbols.
|
||||||
|
F.renameLocalSymbols();
|
||||||
|
|
||||||
printFunction(F);
|
printFunction(F);
|
||||||
FPConstantMap.clear();
|
FPConstantMap.clear();
|
||||||
return false;
|
return false;
|
||||||
|
@ -85,10 +85,15 @@ namespace {
|
|||||||
bool runOnFunction(Function &F) {
|
bool runOnFunction(Function &F) {
|
||||||
LI = &getAnalysis<LoopInfo>();
|
LI = &getAnalysis<LoopInfo>();
|
||||||
|
|
||||||
|
// Get rid of intrinsics we can't handle.
|
||||||
|
lowerIntrinsics(F);
|
||||||
|
|
||||||
// Output all floating point constants that cannot be printed accurately.
|
// Output all floating point constants that cannot be printed accurately.
|
||||||
printFloatingPointConstants(F);
|
printFloatingPointConstants(F);
|
||||||
|
|
||||||
lowerIntrinsics(F);
|
// Ensure that no local symbols conflict with global symbols.
|
||||||
|
F.renameLocalSymbols();
|
||||||
|
|
||||||
printFunction(F);
|
printFunction(F);
|
||||||
FPConstantMap.clear();
|
FPConstantMap.clear();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user