diff options
author | Geoff Berry <gberry@codeaurora.org> | 2016-11-29 19:31:35 +0000 |
---|---|---|
committer | Geoff Berry <gberry@codeaurora.org> | 2016-11-29 19:31:35 +0000 |
commit | 4d66cea34724687518d89f27bd5e40a7288d18f7 (patch) | |
tree | e0abe72342cb65c68a598d2151943c3d6525aee3 /llvm/unittests/Support/ErrorTest.cpp | |
parent | 97279a8ca323355c68e56e9ec8d198f254ecd68b (diff) | |
download | llvm-4d66cea34724687518d89f27bd5e40a7288d18f7.zip llvm-4d66cea34724687518d89f27bd5e40a7288d18f7.tar.gz llvm-4d66cea34724687518d89f27bd5e40a7288d18f7.tar.bz2 |
[LiveRangeEdit] Handle instructions with no defs correctly.
Summary:
The code in LiveRangeEdit::eliminateDeadDef() that computes isOrigDef
doesn't handle instructions in which operand 0 is not a def (e.g. KILL)
correctly. Add a check that operand 0 is a def before doing the rest of
the isOrigDef computation.
Reviewers: qcolombet, MatzeB, wmi
Subscribers: mcrosier, llvm-commits
Differential Revision: https://reviews.llvm.org/D27174
llvm-svn: 288189
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions