summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-10 00:46:07 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-10 00:46:07 +0000
commit688e752207acc4308eae8a83b489366ec88793c9 (patch)
tree7828e023c257b5d6fd5a0b6a31935ec187e47638 /llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
parent638426fc36e08ccee78605a4d8136757ca0faf12 (diff)
downloadbcm5719-llvm-688e752207acc4308eae8a83b489366ec88793c9.tar.gz
bcm5719-llvm-688e752207acc4308eae8a83b489366ec88793c9.zip
Revert "AMDGPU: Force inlining if LDS global address is used"
This reverts commit r336587, it was causing test failures on the sanitizer bots. llvm-svn: 336623
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index b4066102553..22ea16049bf 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -117,12 +117,11 @@ static cl::opt<bool, true> LateCFGStructurize(
cl::location(AMDGPUTargetMachine::EnableLateStructurizeCFG),
cl::Hidden);
-static cl::opt<bool, true> EnableAMDGPUFunctionCalls(
+static cl::opt<bool> EnableAMDGPUFunctionCalls(
"amdgpu-function-calls",
+ cl::Hidden,
cl::desc("Enable AMDGPU function call support"),
- cl::location(AMDGPUTargetMachine::EnableFunctionCalls),
- cl::init(false),
- cl::Hidden);
+ cl::init(false));
// Enable lib calls simplifications
static cl::opt<bool> EnableLibCallSimplify(
@@ -312,11 +311,10 @@ AMDGPUTargetMachine::AMDGPUTargetMachine(const Target &T, const Triple &TT,
initAsmInfo();
}
-bool AMDGPUTargetMachine::EnableLateStructurizeCFG = false;
-bool AMDGPUTargetMachine::EnableFunctionCalls = false;
-
AMDGPUTargetMachine::~AMDGPUTargetMachine() = default;
+bool AMDGPUTargetMachine::EnableLateStructurizeCFG = false;
+
StringRef AMDGPUTargetMachine::getGPUName(const Function &F) const {
Attribute GPUAttr = F.getFnAttribute("target-cpu");
return GPUAttr.hasAttribute(Attribute::None) ?
OpenPOWER on IntegriCloud