[PATCH] D34366: [AMDGPU] Add infer address spaces pass before SROA

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 15:25:28 PDT 2017


arsenm requested changes to this revision.
arsenm added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:346-349
+  Builder.addExtension(
+    PassManagerBuilder::EP_CGSCCOptimizerLate,
+    [](const PassManagerBuilder &, legacy::PassManagerBase &PM) {
+      PM.add(createInferAddressSpacesPass());
----------------
Should add a comment explaining this


================
Comment at: test/CodeGen/AMDGPU/infer-addrpace-pipeline.ll:1
+; RUN: opt -mtriple=amdgcn--amdhsa -disable-output -disable-verify -debug-pass=Structure -O2 %s 2>&1 | FileCheck -check-prefix=GCN %s
+
----------------
Why disable verify?


================
Comment at: test/CodeGen/AMDGPU/infer-addrpace-pipeline.ll:1
+; RUN: opt -mtriple=amdgcn--amdhsa -disable-output -disable-verify -debug-pass=Structure -O2 %s 2>&1 | FileCheck -check-prefix=GCN %s
+
----------------
arsenm wrote:
> Why disable verify?
I'm not sure if this requires asserts for the -debug-pass to work, but it might


Repository:
  rL LLVM

https://reviews.llvm.org/D34366





More information about the llvm-commits mailing list