[PATCH] D69059: [SVE][AArch64] Adding patterns for while intrinsics

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 18:08:01 PST 2019


efriedma added a comment.

Hmm, I just dug up some examples using ACLE.  It looks like the suggestion there is to use ptest on the result.  The ptest can then be optimized away by the backend in common cases.  I guess that works.



================
Comment at: llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td:1506
+  defm WHILEHS_PXX : sve_int_while8_rr<0b100, "whilehs", null_frag>;
+  defm WHILEHI_PXX : sve_int_while8_rr<0b101, "whilehi", null_frag>;
+
----------------
Why are you using null_frag here?

Also, there aren't any tests for whilege/whilegt/whilehs/whilehi.


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

https://reviews.llvm.org/D69059





More information about the llvm-commits mailing list