diff options
author | Dan Gohman <dan433584@gmail.com> | 2018-01-19 17:16:24 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2018-01-19 17:16:24 +0000 |
commit | 5d2b9354b131f6665ce380c9d9267f11cf7fd55e (patch) | |
tree | a5d987eb5bbda5b6bcb70ef384badddca41e9a84 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | |
parent | 1e68724d24ba38de7c7cdb2e1939d78c8b37cc0d (diff) | |
download | bcm5719-llvm-5d2b9354b131f6665ce380c9d9267f11cf7fd55e.tar.gz bcm5719-llvm-5d2b9354b131f6665ce380c9d9267f11cf7fd55e.zip |
[WebAssembly] Make sign-extension opcodes a distinct feature.
Sign-extension opcodes have been split into a separate proposal from
the main threads proposal, so switch them to their own target
feature. See:
https://github.com/WebAssembly/sign-extension-ops
llvm-svn: 322966
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index 299009fa667..d0b3ad37119 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -117,8 +117,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering( // As a special case, these operators use the type to mean the type to // sign-extend from. setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand); - if (!Subtarget->hasAtomics()) { - // The Atomics feature includes signext intructions. + if (!Subtarget->hasSignExt()) { for (auto T : {MVT::i8, MVT::i16, MVT::i32}) setOperationAction(ISD::SIGN_EXTEND_INREG, T, Expand); } |