[PATCH] D15111: AMDGPU/SI: Don't emit group segment global variables
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 09:51:52 PST 2015
arsenm added inline comments.
================
Comment at: lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:129
@@ +128,3 @@
+ const Module *M = GV->getParent();
+ if (Triple(M->getTargetTriple()).getOS() != Triple::AMDHSA ||
+ !AMDGPU::isGroupSegment(GV))
----------------
I think you can get the Triple from the TargetMachine and don't have to construct one here
http://reviews.llvm.org/D15111
More information about the llvm-commits
mailing list