When the input to a wide compare instruction is a DUP or SPLAT_VECTOR
node we should be deal with cases where the DUP/SPLAT_VECTOR input
operand is not an immediate value. I've fixed the code to return
SDValue() in such cases and added a couple of tests - one each to
represent the signed and unsigned cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
11455 | Is it better to add the condition && isa<ConstantSDNode>(Comparator.getOperand(0))on line 11366? Then at this point we can just assert(Imm && "Did not find a valid immediate"); |
Is it better to add the condition && isa<ConstantSDNode>(Comparator.getOperand(0))on line 11366? Then at this point we can just assert(Imm && "Did not find a valid immediate");