[PATCH] D137108: Implement support for AArch64ISD::MOVI in computeKnownBits
Thorsten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 03:10:06 PDT 2022
tschuett added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:1976
+ case AArch64ISD::MOVI: {
+ ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(0));
+ assert(CN && "Expect MOVI operand to be ConstantSDNode");
----------------
Could you you change it to `dyn_cast` with if to get the correct assert and error message?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137108/new/
https://reviews.llvm.org/D137108
More information about the llvm-commits
mailing list