[llvm] [AArch64] Guard against getRegisterBitWidth returning zero in vector instr cost. (PR #117749)
Sushant Gokhale via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 21:22:30 PST 2024
================
@@ -3248,19 +3248,18 @@ InstructionCost AArch64TTIImpl::getVectorInstrCostHelper(
// Check if the extractelement user is scalar fmul.
auto IsUserFMulScalarTy = [](const Value *EEUser) {
// Check if the user is scalar fmul.
- const auto *BO = dyn_cast_if_present<BinaryOperator>(EEUser);
+ const auto *BO = dyn_cast<BinaryOperator>(EEUser);
----------------
sushgokh wrote:
EEUser can be null and hence, dont change this
https://github.com/llvm/llvm-project/pull/117749
More information about the llvm-commits
mailing list