[PATCH] D56938: [WebAssembly] Handle more types of uses in WebAssemblyAddMissingPrototypesPreviously we were only handling bitcasts but prototypeless functionscan also appear in comparisons and as function params.Switch to using replaceAllUsesWith() to...

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 18 14:22:13 PST 2019


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff.

...replace the prototype-less function
uses.  This new approach results in some redundant bitcasting but is much
simpler and handles all cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D56938

Files:
  lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  test/CodeGen/WebAssembly/add-prototypes.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56938.182606.patch
Type: text/x-patch
Size: 4627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190118/92250c25/attachment.bin>


More information about the llvm-commits mailing list