[MachineOutliner][NFC] Use flags set in all candidates to check for calls
authorJessica Paquette <jpaquette@apple.com>
Tue, 13 Nov 2018 23:41:31 +0000 (23:41 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 13 Nov 2018 23:41:31 +0000 (23:41 +0000)
commit4e97ec94d9c13b14e76d3377b27c798436326737
tree32977ae2a4ed995cbd403f8297c826d3c4a15df7
parenta77eae96bfc8348d11fc58c0aed098259c1905a3
[MachineOutliner][NFC] Use flags set in all candidates to check for calls

If we keep track of if the ContainsCalls bit is set in the MBB flags for each
candidate, then we have a better chance of not checking the candidate for calls
at all.

This saves quite a few checks in some CTMark tests (~200 in Bullet, for
example.)

llvm-svn: 346816
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp