[PATCH] D127275: [MVE] Fold fadd(select(..., +0.0)) into a predicated fadd

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 01:33:32 PDT 2022


david-arm updated this revision to Diff 435449.
david-arm added a comment.

- Use the flags for the fadd to determine the safety of the transformation and apply the NSZ flag to the select if needed.
- Tweaked the tests to demonstrate the transform succeeds when the nsz flag is only on the fadd.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127275/new/

https://reviews.llvm.org/D127275

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-pred-selectop3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127275.435449.patch
Type: text/x-patch
Size: 5007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220609/bae93d93/attachment.bin>


More information about the llvm-commits mailing list