diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-08-11 15:40:32 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-08-11 15:40:32 +0000 |
commit | 1fb1ce0c87b1b2c78068488be3f624d3c0cbb19a (patch) | |
tree | afd9ad2c0f4f26ba2281f5c32265a5cf952f233a /llvm/test/CodeGen/X86/select_const.ll | |
parent | 16bddf21cf20a747dffb4e9d922a139f08cbcc59 (diff) | |
download | bcm5719-llvm-1fb1ce0c87b1b2c78068488be3f624d3c0cbb19a.tar.gz bcm5719-llvm-1fb1ce0c87b1b2c78068488be3f624d3c0cbb19a.zip |
[globalisel][tablegen] Support zero-instruction emission.
Summary:
Support the case where an operand of a pattern is also the whole of the
result pattern. In this case the original result and all its uses must be
replaced by the operand. However, register class restrictions can require
a COPY. This patch handles both cases by always emitting the copy and
leaving it for the register allocator to optimize.
Depends on D35833
Reviewers: ab, t.p.northover, qcolombet, rovka, aditya_nandakumar
Subscribers: javed.absar, kristof.beyls, igorb, llvm-commits
Differential Revision: https://reviews.llvm.org/D36084
llvm-svn: 310716
Diffstat (limited to 'llvm/test/CodeGen/X86/select_const.ll')
0 files changed, 0 insertions, 0 deletions