[polly] 89e257b - [Polly] Fix -DPOLLY_ENABLE_GPGPU_CODEGEN=off build after 222d380d2f57cc71bb613b5c01ecf17cd1f61fa2

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 09:17:19 PST 2021


Author: Fangrui Song
Date: 2021-02-10T09:17:13-08:00
New Revision: 89e257bd629d07211078cc32bbe39d33d5752fdb

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

LOG: [Polly] Fix -DPOLLY_ENABLE_GPGPU_CODEGEN=off build after 222d380d2f57cc71bb613b5c01ecf17cd1f61fa2

Added: 
    

Modified: 
    polly/lib/Support/RegisterPasses.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index 6543596d82b1..528b22914ba2 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -535,8 +535,9 @@ static void buildDefaultPollyPipeline(FunctionPassManager &PM,
     case CODEGEN_NONE:
       break;
     }
+  }
 #ifdef GPU_CODEGEN
-  } else
+  else
     report_fatal_error("Option -polly-target=gpu not supported for NPM", false);
 #endif
 


        


More information about the llvm-commits mailing list