[llvm] [AArch64] Fix active.lane.mask(0, cttz.elts(x)) -> 'brkb' transform (PR #180177)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 6 07:05:08 PST 2026
================
@@ -48,6 +48,10 @@ void AArch64SelectionDAGInfo::verifyTargetNode(const SelectionDAG &DAG,
#ifndef NDEBUG
// Some additional checks not yet implemented by verifyTargetNode.
switch (N->getOpcode()) {
+ case AArch64ISD::CTTZ_ELTS:
+ assert(N->getOperand(0).getValueType() == N->getOperand(1).getValueType() &&
+ "Expected the mask and general-predicate have matching types");
----------------
paulwalker-arm wrote:
```suggestion
"Expected the mask and general-predicate to have matching types");
```
Might also be worth swapping to "general-predicate and mask" to reflect the operand order.
https://github.com/llvm/llvm-project/pull/180177
More information about the llvm-commits
mailing list