[PATCH] D51459: [WebAssembly][WIP] Vector conversions

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 30 11:24:14 PDT 2018


tlively added inline comments.


================
Comment at: lib/Target/WebAssembly/WebAssemblyRegStackify.cpp:569
+  if (WasmDisableExplicitLocals)
+    return Def;
+
----------------
aardappel wrote:
> aheejin wrote:
> > tlively wrote:
> > > @aardappel This solution for the problem described in the comment fixes my own test, but causes crashes in the stackification tests. I assume this function is doing other work besides creating a TEE that cannot be skipped. Could you suggest a more robust way to fix this problem?
> > (We talked in person and I'm gonna summarize it here)
> > Giving those instructions fake opcodes (like 0) can be one solution too.
> Yes, we'd really want to avoid checks like this, as disabling the explicit locals is something pretty hacky we only do to keep current tests happy.
> 
> I think the easiest solution is to convert the affected test to work with explicit locals?
Would it be useful to convert the tests to work with explicit locals or is there some other benefit to disabling them?


Repository:
  rL LLVM

https://reviews.llvm.org/D51459





More information about the llvm-commits mailing list