]> granicus.if.org Git - llvm/commit
[InstCombine] Add a DEBUG_COUNTER to InstCombine to limit how many instructions are...
authorCraig Topper <craig.topper@intel.com>
Thu, 10 Aug 2017 17:48:12 +0000 (17:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 10 Aug 2017 17:48:12 +0000 (17:48 +0000)
commit992d9d34736cceb4cd327e57886d82b41bae85d2
tree0771d4499418c67b3e4738755429d595b5fe9750
parentebdb044915df960f78ddd76943e3b3a4dab68268
[InstCombine] Add a DEBUG_COUNTER to InstCombine to limit how many instructions are visited for debug

Sometimes it would be nice to stop InstCombine mid way through its combining to see the current IR. By using a debug counter we can place an upper limit on how many instructions to process.

This will also allow skipping the first X combines, but that has the potential to change later combines since earlier canonicalizations might have been skipped.

Differential Revision: https://reviews.llvm.org/D36553

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310638 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp