[PowerPC] Updated the error message of MASSV pass to mention vectorization
authorMasoud Ataei <msd.ataei@gmail.com>
Fri, 16 Jul 2021 14:45:09 +0000 (14:45 +0000)
committerMasoud Ataei <msd.ataei@gmail.com>
Fri, 16 Jul 2021 14:45:09 +0000 (14:45 +0000)
 is needed be enable on P8 and later targets.

 Differential Revision: https://reviews.llvm.org/D106091

llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp

index d16bdea..2f19cbf 100644 (file)
@@ -82,8 +82,9 @@ StringRef PPCLowerMASSVEntries::getCPUSuffix(const PPCSubtarget *Subtarget) {
   if (Subtarget->hasP8Vector())
     return "P8";
 
-  report_fatal_error("Unsupported Subtarget: MASSV is supported only on "
-                     "Power8 and Power9 subtargets.");
+  report_fatal_error(
+      "-vector-library=MASSV option is supported only on Power8 and later "
+      "subtargets when vectorization is not disabled.");
 }
 
 /// Creates PowerPC subtarget-specific name corresponding to the specified