[llvm] r200738 - RegAllocGreedy.cpp: Use more simple value as Hysteresis, to suppress -mfpmath-dependent behavior.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Feb 3 22:29:38 PST 2014
Author: chapuni
Date: Tue Feb 4 00:29:38 2014
New Revision: 200738
URL: http://llvm.org/viewvc/llvm-project?rev=200738&view=rev
Log:
RegAllocGreedy.cpp: Use more simple value as Hysteresis, to suppress -mfpmath-dependent behavior.
Modified:
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=200738&r1=200737&r2=200738&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Tue Feb 4 00:29:38 2014
@@ -311,7 +311,7 @@ const char *const RAGreedy::StageName[]
// Hysteresis to use when comparing floats.
// This helps stabilize decisions based on float comparisons.
-const float Hysteresis = 0.98f;
+const float Hysteresis = (2007 / 2048.0f); // 0.97998046875
FunctionPass* llvm::createGreedyRegisterAllocator() {
More information about the llvm-commits
mailing list