diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-03-04 18:25:41 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-03-04 18:25:41 +0000 |
| commit | 1d6bb9f4171028bd0eb3dfcb59f42b28c279d4be (patch) | |
| tree | bd5f9425e10e6616a37eac0815b3566ba1132430 /lib/Target/WebAssembly/WebAssemblyInstrInteger.td | |
| parent | bd7f07563c83e00dae23ea41c0fc4f95995e50cb (diff) | |
Notes
Diffstat (limited to 'lib/Target/WebAssembly/WebAssemblyInstrInteger.td')
| -rw-r--r-- | lib/Target/WebAssembly/WebAssemblyInstrInteger.td | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInteger.td b/lib/Target/WebAssembly/WebAssemblyInstrInteger.td index d5b63d643697..bd41f46214a3 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInteger.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrInteger.td @@ -122,10 +122,3 @@ def : Pat<(select (i32 (seteq I32:$cond, 0)), I32:$lhs, I32:$rhs), (SELECT_I32 I32:$rhs, I32:$lhs, I32:$cond)>; def : Pat<(select (i32 (seteq I32:$cond, 0)), I64:$lhs, I64:$rhs), (SELECT_I64 I64:$rhs, I64:$lhs, I32:$cond)>; - -// The legalizer inserts an unnecessary `and 1` to make input conform -// to getBooleanContents, which we can lower away. -def : Pat<(select (i32 (and I32:$cond, 1)), I32:$lhs, I32:$rhs), - (SELECT_I32 I32:$lhs, I32:$rhs, I32:$cond)>; -def : Pat<(select (i32 (and I32:$cond, 1)), I64:$lhs, I64:$rhs), - (SELECT_I64 I64:$lhs, I64:$rhs, I32:$cond)>; |
