[llvm] ee2068b - [PowerPC] Updated the error message of MASSV pass to mention vectorization

Masoud Ataei via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 07:47:20 PDT 2021


Author: Masoud Ataei
Date: 2021-07-16T14:45:09Z
New Revision: ee2068b30ecf297c004c06eedd7e1063c67a279c

URL: https://github.com/llvm/llvm-project/commit/ee2068b30ecf297c004c06eedd7e1063c67a279c
DIFF: https://github.com/llvm/llvm-project/commit/ee2068b30ecf297c004c06eedd7e1063c67a279c.diff

LOG: [PowerPC] Updated the error message of MASSV pass to mention vectorization
 is needed be enable on P8 and later targets.

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

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp b/llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
index d16bdeaf365d..2f19cbf24bb4 100644
--- a/llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
+++ b/llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
@@ -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


        


More information about the llvm-commits mailing list