[PATCH] D71432: [AArch64][SVE] Proposal to use op+select to match scalable predicated operations

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 07:56:36 PST 2019


cameron.mcinally added a comment.

Ah, ok. I see your point now.

  for(...)
    double c = a[i]/b[i];
    if (b[i] != 0)
      a[i] = c;
  `

For this particular case, the select should follow the store though, not the fdiv. That should be ok. The store should become a masked store and the fdiv would be unpredicated.


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

https://reviews.llvm.org/D71432





More information about the llvm-commits mailing list