mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Try harder to get a consistent floating point results.
This just extends the existing hack. It should be enough to get a reproducible bootstrap on 32 bits. I will open a bug to track getting a real fix for this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
688aa71e35
commit
ba2a226fab
@ -2351,7 +2351,7 @@ bool SelectionDAGBuilder::handleBTSplitSwitchCase(CaseRec& CR,
|
|||||||
volatile double RDensity =
|
volatile double RDensity =
|
||||||
(double)RSize.roundToDouble() /
|
(double)RSize.roundToDouble() /
|
||||||
(Last - RBegin + 1ULL).roundToDouble();
|
(Last - RBegin + 1ULL).roundToDouble();
|
||||||
double Metric = Range.logBase2()*(LDensity+RDensity);
|
volatile double Metric = Range.logBase2()*(LDensity+RDensity);
|
||||||
// Should always split in some non-trivial place
|
// Should always split in some non-trivial place
|
||||||
DEBUG(dbgs() <<"=>Step\n"
|
DEBUG(dbgs() <<"=>Step\n"
|
||||||
<< "LEnd: " << LEnd << ", RBegin: " << RBegin << '\n'
|
<< "LEnd: " << LEnd << ", RBegin: " << RBegin << '\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user