diff options
author | Derek Schuff <dschuff@google.com> | 2016-02-16 18:18:36 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2016-02-16 18:18:36 +0000 |
commit | aadc89c25d664d8c52b7a96b1db1d581cd435358 (patch) | |
tree | 1bcfd5585267ea813c4d88d9ef15b04dbb5d5659 /llvm/lib/Linker | |
parent | cc4c8718ed09b783a03f93500b96aea41f8273b4 (diff) | |
download | bcm5719-llvm-aadc89c25d664d8c52b7a96b1db1d581cd435358.tar.gz bcm5719-llvm-aadc89c25d664d8c52b7a96b1db1d581cd435358.zip |
[WebAssembly] Insert COPY_LOCAL between CopyToReg and FrameIndex DAG nodes
CopyToReg nodes don't support FrameIndex operands. Other targets select
the FI to some LEA-like instruction, but since we don't have that, we
need to insert some kind of instruction that can take an FI operand and
produces a value usable by CopyToReg (i.e. in a vreg). So insert a dummy
copy_local between Op and its FI operand. This results in a redundant
copy which we should optimize away later (maybe in the post-FI-lowering
peephole pass).
Differential Revision: http://reviews.llvm.org/D17213
llvm-svn: 260987
Diffstat (limited to 'llvm/lib/Linker')
0 files changed, 0 insertions, 0 deletions