OSDN Git Service

[MachineOutliner][NFC] Exit getOutliningType if there are < 2 candidates
authorJessica Paquette <jpaquette@apple.com>
Tue, 13 Nov 2018 22:16:27 +0000 (22:16 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 13 Nov 2018 22:16:27 +0000 (22:16 +0000)
commit14f489a3e774db4d4ae400564762c4ff61a9fa10
tree0eae04905a1af2a7578bfd736ed4aad3cf64bc0a
parente9eedd7fa6f4f861afbc7a2862f3f5504e6d340f
[MachineOutliner][NFC] Exit getOutliningType if there are < 2 candidates

Since we never outline anything with fewer than 2 occurrences, there's no
reason to compute cost model information if there's less than that.

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