[PATCH] D136722: [AArch64] Extending lowering of 'zext <Y x i8> %x to <Y x i8X>' to use tbl instructions
NILANJANA BASU via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 10:40:58 PST 2022
nilanjana_basu marked an inline comment as done.
nilanjana_basu added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:13774
+ unsigned ZExtFactor =
+ (cast<IntegerType>(DstTy->getElementType())->getBitWidth()) /
+ (cast<IntegerType>(SrcTy->getElementType())->getBitWidth());
----------------
fhahn wrote:
> I *think* we could have something like `zext i8 to i33` and then the division will drop the remainder. Could you add a test to see if that's the case and make sure we don't perform an incorrect transformation? It should be fine to just ignore cases where there would be remainder.
I have also added testing for the Global-ISel path.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136722/new/
https://reviews.llvm.org/D136722
More information about the llvm-commits
mailing list