[PATCH] D22686: [WASM] SIMD128 support.
João Porto via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 09:59:25 PDT 2016
jpp added inline comments.
================
Comment at: lib/Target/WebAssembly/WebAssemblySubtarget.cpp:69
@@ +68,3 @@
+ if (HasSIMD128)
+ return true;
+ return false;
----------------
sunfish wrote:
> It's not necessary to check HasSIMD128 here, because we shouldn't have created an ARGUMENT_v16i8 etc. if we don't have HasSIMD128 in the first place :-). And without that check, this function doesn't need to be a member of WebAssemblySubtarget.
>
> The same applies to other hasSIMD128() checks in the patch as well.
I was debating whether I should add all these hasSIMD128() checks everywhere or not, and then I decided to be pedantic. Should I remove them all?
Repository:
rL LLVM
https://reviews.llvm.org/D22686
More information about the llvm-commits
mailing list