[PATCH] D102053: [AArch64][SVE] Fix isel failure for FP-extending loads

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 7 01:13:12 PDT 2021


sdesmalen created this revision.
sdesmalen added reviewers: david-arm, bsmith, kmclaughlin.
Herald added subscribers: steven.zhang, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

DAGCombiner tries to combine a (fpext (load)) to (fround (extload))
but SVE has no FP-extending loads. By marking these as expand,
the combine no longer happens.

This also fixes a similar issue for fptrunc, where the source type
is not a legal type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102053

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-fpext-load.ll
  llvm/test/CodeGen/AArch64/sve-fptrunc-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102053.343604.patch
Type: text/x-patch
Size: 6364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210507/131dfc2b/attachment.bin>


More information about the llvm-commits mailing list