[PATCH] D17834: [AArch64] fold 'isPositive' vector integer operations (PR26819)

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 16:04:39 PST 2016


t.p.northover added a comment.

Thanks for working on this Sanjay, especially as it's not really your home target. Just one simplification to suggest:


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:7447
@@ +7446,3 @@
+    case MVT::v4i32:
+    case MVT::v2i64: if (!Subtarget->hasNEON()) return SDValue(); break;
+  }
----------------
This looks like a vestige of x86's different levels of vector support. On AArch64 all vector types are legal or none are.

So I'd suggest making this *just* the NEON check (or even an assertion), and moving the foldVectorXorShiftIntoCmp call below the isBeforeLegalizeOps check.


http://reviews.llvm.org/D17834





More information about the llvm-commits mailing list