aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-02-24 19:21:48 +0000
committerMatthias Braun <matze@braunis.de>2016-02-24 19:21:48 +0000
commitaca625a4fe812a13c1f4718996b0460d6e4d1faf (patch)
tree0d0539b97cfb1a9a43294e257fb691791e538abb /clang/lib/CodeGen/CodeGenFunction.h
parente7e7c98f0bf081baa70ec505c9111dc655e75517 (diff)
downloadllvm-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