diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-05 04:14:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-05 04:14:33 +0000 |
commit | ba2a226fab1711e32686d62ae1250ea1400247ee (patch) | |
tree | 4d5debb14ddce5b1fe76bbe77aee11bdc5dc24f2 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 688aa71e35ef9c062afe6d1673cbdeef8a44d2ca (diff) | |
download | llvm-ba2a226fab1711e32686d62ae1250ea1400247ee.tar.gz llvm-ba2a226fab1711e32686d62ae1250ea1400247ee.tar.bz2 llvm-ba2a226fab1711e32686d62ae1250ea1400247ee.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index b1d247e74f..34b7df59ac 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2351,7 +2351,7 @@ bool SelectionDAGBuilder::handleBTSplitSwitchCase(CaseRec& CR, volatile double RDensity = (double)RSize.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 DEBUG(dbgs() <<"=>Step\n" << "LEnd: " << LEnd << ", RBegin: " << RBegin << '\n' |