[PATCH] D134711: [AArch64] Select SMULL for zero extended vectors when top bit is zero
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 05:49:17 PDT 2022
spatel added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:4405
+ unsigned PreZextSizeInBits = ZextOperand.getScalarValueSizeInBits();
+ KnownBits Bits = DAG.computeKnownBits(ZextOperand, 4);
+ KnownBits LastBitValue = Bits.extractBits(1, PreZextSizeInBits - 1);
----------------
Just a couple of drive-by comments:
1. Why is this passing depth 4?
2. Use DAG.SignBitIsZero() to make this easier to read? ("last bit" usually means the LSB, not the MSB/signbit).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134711/new/
https://reviews.llvm.org/D134711
More information about the llvm-commits
mailing list