[llvm] [VN] be more consistent about forwarding null inputs and ignoring SVE outputs (PR #139574)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 09:47:54 PDT 2025


================
@@ -9,8 +9,8 @@
 namespace llvm {
 namespace VNCoercion {
 
-static bool isFirstClassAggregateOrScalableType(Type *Ty) {
-  return Ty->isStructTy() || Ty->isArrayTy() || isa<ScalableVectorType>(Ty);
+static bool isFirstClassAggregate(Type *Ty) {
+  return Ty->isStructTy() || Ty->isArrayTy();
----------------
nikic wrote:

This is `Ty->isAggregateType()`, don't need a helper for it.

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


More information about the llvm-commits mailing list