OSDN Git Service

[MachineOutliner] Only outline candidates of length >= 2
authorJessica Paquette <jpaquette@apple.com>
Mon, 14 Aug 2017 22:57:41 +0000 (22:57 +0000)
committerJessica Paquette <jpaquette@apple.com>
Mon, 14 Aug 2017 22:57:41 +0000 (22:57 +0000)
commitaf163855d63adf28aa0e8062d940a6f969a514df
tree1e8258a3a574ba3de98c09f2bdf7e941cb0a1570
parent2650c7605057241c2eb18111fe91a5ac9381f8bb
[MachineOutliner] Only outline candidates of length >= 2

Since we don't factor in instruction lengths into outlining calculations
right now, it's never the case that a candidate could have length < 2.

Thus, we should quit early when we see such candidates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310894 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineOutliner.cpp