[PATCH] D156780: [CSKY] Optimize 'llvm.cttz.i32' and 'llvm.ctlz.i32'
Zixuan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 1 02:11:50 PDT 2023
zixuan-wu added inline comments.
================
Comment at: llvm/lib/Target/CSKY/CSKYISelLowering.cpp:1406
+bool CSKYTargetLowering::isCheapToSpeculateCttz(Type *Ty) const {
+ return Ty->isIntegerTy(Subtarget.XLen) && Subtarget.has2E3();
+}
----------------
I think no more need of `Ty->isIntegerTy(Subtarget.XLen)`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156780/new/
https://reviews.llvm.org/D156780
More information about the llvm-commits
mailing list