Skip to content

Commit a2c57e1

Browse files
committed
[AArch64][GlobalISel] Remove unnecessary fp convert patterns. NFC
We nowadays legalize the fp converts to legal operations earlier, not requiring patterns that select to multiple instructions.
1 parent 061f87f commit a2c57e1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

llvm/lib/Target/AArch64/AArch64InstrGISel.td

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -324,27 +324,6 @@ def : Pat<(f32 (fadd (vector_extract (v2f32 FPR64:$Rn), (i64 0)),
324324
(vector_extract (v2f32 FPR64:$Rn), (i64 1)))),
325325
(f32 (FADDPv2i32p (v2f32 FPR64:$Rn)))>;
326326

327-
let Predicates = [HasNEON] in {
328-
def : Pat<(v2f64 (sint_to_fp v2i32:$src)),
329-
(SCVTFv2f64 (SSHLLv2i32_shift V64:$src, 0))>;
330-
def : Pat<(v2f64 (uint_to_fp v2i32:$src)),
331-
(UCVTFv2f64 (USHLLv2i32_shift V64:$src, 0))>;
332-
def : Pat<(v2f32 (sint_to_fp v2i64:$src)),
333-
(FCVTNv2i32 (SCVTFv2f64 V128:$src))>;
334-
def : Pat<(v2f32 (uint_to_fp v2i64:$src)),
335-
(FCVTNv2i32 (UCVTFv2f64 V128:$src))>;
336-
337-
def : Pat<(v2i64 (fp_to_sint v2f32:$src)),
338-
(FCVTZSv2f64 (FCVTLv2i32 V64:$src))>;
339-
def : Pat<(v2i64 (fp_to_uint v2f32:$src)),
340-
(FCVTZUv2f64 (FCVTLv2i32 V64:$src))>;
341-
def : Pat<(v2i32 (fp_to_sint v2f64:$src)),
342-
(XTNv2i32 (FCVTZSv2f64 V128:$src))>;
343-
def : Pat<(v2i32 (fp_to_uint v2f64:$src)),
344-
(XTNv2i32 (FCVTZUv2f64 V128:$src))>;
345-
346-
}
347-
348327
let Predicates = [HasNoLSE] in {
349328
def : Pat<(atomic_cmp_swap_i8 GPR64:$addr, GPR32:$desired, GPR32:$new),
350329
(CMP_SWAP_8 GPR64:$addr, GPR32:$desired, GPR32:$new)>;

0 commit comments

Comments
 (0)