llvm.org GIT mirror llvm / 0132c61
Merging r328885: ------------------------------------------------------------------------ r328885 | timshen | 2018-03-30 10:51:03 -0700 (Fri, 30 Mar 2018) | 14 lines [NVPTX] Enable StructuredCFG for NVPTX Summary: Make NVPTX require structured CFG. Added a temporary flag to "roll back" the behavior for easy deployment. Combined with D45008, this fixes several internal Nvidia GPU test failures that we suspect to be ptxas miscompiles (PR27738). Reviewers: jlebar Subscribers: jholewinski, sanjoy, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D45070 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@333475 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 1 year, 4 months ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4343 cl::desc("Disable load/store vectorizer"),
4444 cl::init(false), cl::Hidden);
4545
46 // TODO: Remove this flag when we are confident with no regressions.
47 static cl::opt DisableRequireStructuredCFG(
48 "disable-nvptx-require-structured-cfg",
49 cl::desc("Transitional flag to turn off NVPTX's requirement on preserving "
50 "structured CFG. The requirement should be disabled only when "
51 "unexpected regressions happen."),
52 cl::init(false), cl::Hidden);
53
4654 namespace llvm {
4755
4856 void initializeNVVMIntrRangePass(PassRegistry&);
107115 drvInterface = NVPTX::NVCL;
108116 else
109117 drvInterface = NVPTX::CUDA;
118 if (!DisableRequireStructuredCFG)
119 setRequiresStructuredCFG(true);
110120 initAsmInfo();
111121 }
112122