From 3d76a133c7e0d4056c1a0657b0b186c381bf7b74 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 19 Aug 2020 16:52:09 +0300 Subject: [PATCH] Revert "[InstCombine] Lower infinite combine loop detection thresholds" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 9033e08..cb6e77a 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -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 -- 2.7.4