[MachineOutliner] Add defs to calls + don't track liveness on outlined functions
authorJessica Paquette <jpaquette@apple.com>
Fri, 27 Apr 2018 23:36:35 +0000 (23:36 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 27 Apr 2018 23:36:35 +0000 (23:36 +0000)
commit0b6724917a694692049325cb582da668c4e28528
tree336012820ced4e459e160b698d5443def9a3dff5
parent502d4481d48a93dd6c083e049cf675b7c2946e6d
[MachineOutliner] Add defs to calls + don't track liveness on outlined functions

This commit makes it so that if you outline a def of some register, then the
call instruction created by the outliner actually reflects that the register
is defined by the call. It also makes it so that outlined functions don't
have the TracksLiveness property.

Outlined calls shouldn't break liveness assumptions that someone might make.

This also un-XFAILs the noredzone test, and updates the calls test.

llvm-svn: 331095
llvm/lib/CodeGen/MachineOutliner.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/machine-outliner-calls.mir
llvm/test/CodeGen/AArch64/machine-outliner-noredzone.ll