[llvm] [AArch64] Optimized generated assembly for bool to svbool_t conversions (PR #83001)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 03:48:50 PST 2024


================
@@ -269,13 +269,15 @@ static bool isMergePassthruOpcode(unsigned Opc) {
 
 // Returns true if inactive lanes are known to be zeroed by construction.
 static bool isZeroingInactiveLanes(SDValue Op) {
+  // Skip bitcasts nodes
+  while (Op->getOpcode() == ISD::BITCAST)
+    Op = Op->getOperand(0);
+    
----------------
Lukacma wrote:

Yes I was wondering about that as well. I added it because `isConstantSplatVectorAllOnes` was doing it and wanted to preserve it. I am not sure whether we have any casts from other types to predicate type. 

https://github.com/llvm/llvm-project/pull/83001


More information about the llvm-commits mailing list