[PATCH] D82377: [ARM] Allow tail predication on sadd_sat and uadd_sat intrinsics
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 07:26:10 PDT 2020
SjoerdMeijer added inline comments.
================
Comment at: llvm/lib/Target/ARM/MVETailPredication.cpp:356
} else if (auto *Int = dyn_cast<IntrinsicInst>(&I)) {
- if (Int->getIntrinsicID() == Intrinsic::fma)
+ if (Int->getIntrinsicID() == Intrinsic::fma || Int->getIntrinsicID() == Intrinsic::sadd_sat || Int->getIntrinsicID() == Intrinsic::uadd_sat)
continue;
----------------
Do we expect more intrinsics to be allowed after these 2? For example, if we allow sadd, can we allow ssub too? And then while we are add it, add the ssubs too?
If we expect more intrinsics here, probably better to create an "AllowList" for intrinsics somewhere, and do a look-up here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82377/new/
https://reviews.llvm.org/D82377
More information about the llvm-commits
mailing list