Revert "[InstCombine] Lower infinite combine loop detection thresholds"
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 19 Aug 2020 13:52:09 +0000 (16:52 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 19 Aug 2020 13:53:30 +0000 (16:53 +0300)
And as being reported by Florian Hahn, there's a hit
in MultiSource/Benchmarks/mafft from the test-suite on X86 with -O3 -flto,
so reverting until addressed.

This reverts commit 71e0b82c9f5039cb3987c91075e78733ef044c07.

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

index 9033e08..cb6e77a 100644 (file)
@@ -127,7 +127,7 @@ DEBUG_COUNTER(VisitCounter, "instcombine-visit",
 // FIXME: these limits eventually should be as low as 2.
 static constexpr unsigned InstCombineDefaultMaxIterations = 1000;
 #ifndef NDEBUG
-static constexpr unsigned InstCombineDefaultInfiniteLoopThreshold = 10;
+static constexpr unsigned InstCombineDefaultInfiniteLoopThreshold = 100;
 #else
 static constexpr unsigned InstCombineDefaultInfiniteLoopThreshold = 1000;
 #endif