TailDuplication: Extract Indirect-Branch block limit as option. NFC
authorKyle Butt <kyle+llvm@iteratee.net>
Tue, 30 Aug 2016 18:18:54 +0000 (18:18 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Tue, 30 Aug 2016 18:18:54 +0000 (18:18 +0000)
commit61aca6ef798aa918833be6125d4600cb95a585ce
treeaa4d84de77e945dfc600302608275a8148a8cd6b
parenteb666b7ac54ac3df38b69ee2b281970390603173
TailDuplication: Extract Indirect-Branch block limit as option. NFC

The existing code hard-coded a limit of 20 instructions for duplication
when a block ended with an indirect branch. Extract this as an option.
No functional change intended.

llvm-svn: 280125
llvm/include/llvm/CodeGen/TailDuplicator.h
llvm/lib/CodeGen/TailDuplicator.cpp