[PATCH] D146781: [Webassembly] consider invalid CALL_S in removeRegisterOperands

Congcong Cai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 21:30:58 PDT 2023


HerrCai0907 created this revision.
HerrCai0907 added a reviewer: tlively.
Herald added subscribers: pmatos, asb, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: All.
HerrCai0907 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

CALL_S at least need one operand as call func index. This case needs to
be identifer during removing register operands. Otherwise incorrect CALL_S
instruction will crash other part.
Invalid CALL_S will be replaced with UNREACHABLE


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146781

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  llvm/test/CodeGen/WebAssembly/call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146781.507956.patch
Type: text/x-patch
Size: 4029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230324/666ddd5a/attachment.bin>


More information about the llvm-commits mailing list