]> granicus.if.org Git - llvm/commit
[WebAssembly] FastISel: Don't fallback to SelectionDAG after BuildMI in selectCall
authorSam Clegg <sbc@chromium.org>
Fri, 19 Apr 2019 22:43:32 +0000 (22:43 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 19 Apr 2019 22:43:32 +0000 (22:43 +0000)
commit5477ac9732283c139d103c47b19932bf06e9e040
tree026d885a664e0e928e17adca6b1c0a32c0ba4922
parent116c7f3025e46d14d360dfb632ac71fa4a95a26a
[WebAssembly] FastISel: Don't fallback to SelectionDAG after BuildMI in selectCall

My understanding is that once BuildMI has been called we can't fallback
to SelectionDAG.

This change moves the fallback for when getRegForValue() fails for
that target of an indirect call.  This was failing in -fPIC mode when
the callee is GlobalValue.

Add a test case that tickles this.

Differential Revision: https://reviews.llvm.org/D60908

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358793 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
test/CodeGen/WebAssembly/call-pic.ll