[PATCH] D136862: [AArch64][SME2] Add CodeGen support for target("aarch64.svcount").
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 1 09:09:11 PST 2023
paulwalker-arm accepted this revision.
paulwalker-arm added a comment.
This revision is now accepted and ready to land.
A couple of minor issues but otherwise looks good.
================
Comment at: llvm/include/llvm/CodeGen/ValueTypes.h:125
bool isZeroSized() const {
- return !isScalableVector() && getSizeInBits() == 0;
+ return getSizeInBits().getKnownMinValue() == 0;
}
----------------
Can you use `isZero()` here?
================
Comment at: llvm/test/CodeGen/AArch64/sme-aarch64-svcount.ll:168-172
+;define target("aarch64.svcount") @test_sel_cc(target("aarch64.svcount") %x, target("aarch64.svcount") %y, i32 %k) {
+; %cmp = icmp sgt i32 %k, 42
+; %x.y = select i1 %cmp, target("aarch64.svcount") %x, target("aarch64.svcount") %y
+; ret target("aarch64.svcount") %x.y
+;}
----------------
Commented out test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136862/new/
https://reviews.llvm.org/D136862
More information about the llvm-commits
mailing list