diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-02-06 23:00:17 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-02-06 23:00:17 +0000 |
commit | 98f8bba283969d51aba53018a0a1f31838006a58 (patch) | |
tree | 6584cc0f1f9ff7bec0e91016137d89d224fe4661 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 339dbb8af2a7372bb79cdb8f5a9d87138b50e3da (diff) | |
download | llvm-98f8bba283969d51aba53018a0a1f31838006a58.zip llvm-98f8bba283969d51aba53018a0a1f31838006a58.tar.gz llvm-98f8bba283969d51aba53018a0a1f31838006a58.tar.bz2 |
[LivePhysRegs] Fix handling of return instructions.
See D42509 for the original version of this.
Basically, there are two significant changes to behavior here:
- addLiveOuts always adds all pristine registers (even if a block has
no successors).
- addLiveOuts and addLiveOutsNoPristines always add all callee-saved
registers for return blocks (including conditional return blocks).
I cleaned up the functions a bit to make it clear these properties hold.
Differential Revision: https://reviews.llvm.org/D42655
llvm-svn: 324422
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions