From: Benjamin Kramer Date: Fri, 24 Mar 2017 17:53:06 +0000 (+0000) Subject: [AMDGPU] Don't enforce constexpr, there are still old standard libraries around that... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65bb8eff35944edf17dd31ca67f24cb282808d7b;p=llvm [AMDGPU] Don't enforce constexpr, there are still old standard libraries around that don't have a constexpr std::pair. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298719 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIMachineScheduler.cpp b/lib/Target/AMDGPU/SIMachineScheduler.cpp index da5e7f55c30..b6883bfb7df 100644 --- a/lib/Target/AMDGPU/SIMachineScheduler.cpp +++ b/lib/Target/AMDGPU/SIMachineScheduler.cpp @@ -1809,8 +1809,8 @@ void SIScheduleDAGMI::schedule() // if VGPR usage is extremely high, try other good performing variants // which could lead to lower VGPR usage if (Best.MaxVGPRUsage > 180) { - static constexpr std::pair + static const std::pair Variants[] = { { LatenciesAlone, BlockRegUsageLatency }, // { LatenciesAlone, BlockRegUsage }, @@ -1830,8 +1830,8 @@ void SIScheduleDAGMI::schedule() // if VGPR usage is still extremely high, we may spill. Try other variants // which are less performing, but that could lead to lower VGPR usage. if (Best.MaxVGPRUsage > 200) { - static constexpr std::pair + static const std::pair Variants[] = { // { LatenciesAlone, BlockRegUsageLatency }, { LatenciesAlone, BlockRegUsage },