summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/select_const.ll
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-08-11 15:40:32 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-08-11 15:40:32 +0000
commit1fb1ce0c87b1b2c78068488be3f624d3c0cbb19a (patch)
treeafd9ad2c0f4f26ba2281f5c32265a5cf952f233a /llvm/test/CodeGen/X86/select_const.ll
parent16bddf21cf20a747dffb4e9d922a139f08cbcc59 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud