diff options
author | Matthias Braun <matze@braunis.de> | 2016-02-24 19:21:48 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-02-24 19:21:48 +0000 |
commit | aca625a4fe812a13c1f4718996b0460d6e4d1faf (patch) | |
tree | 0d0539b97cfb1a9a43294e257fb691791e538abb /clang/lib/CodeGen/CodeGenFunction.h | |
parent | e7e7c98f0bf081baa70ec505c9111dc655e75517 (diff) | |
download | llvm-aca625a4fe812a13c1f4718996b0460d6e4d1faf.zip llvm-aca625a4fe812a13c1f4718996b0460d6e4d1faf.tar.gz llvm-aca625a4fe812a13c1f4718996b0460d6e4d1faf.tar.bz2 |
MachineInstr: Respect register aliases in clearRegiserKills()
This fixes bugs in copy elimination code in llvm. It slightly changes the
semantics of clearRegisterKills(). This is appropriate because:
- Users in lib/CodeGen/MachineCopyPropagation.cpp and
lib/Target/AArch64RedundantCopyElimination.cpp and
lib/Target/SystemZ/SystemZElimCompare.cpp are incorrect without it
(see included testcase).
- All other users in llvm are unaffected (they pass TRI==nullptr)
- (Kill flags are optional anyway so removing too many shouldn't hurt.)
Differential Revision: http://reviews.llvm.org/D17554
llvm-svn: 261763
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions