Skip to content

Commit

Permalink
[AMDGPU] Don't enforce constexpr, there are still old standard librar…
Browse files Browse the repository at this point in the history
…ies 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
  • Loading branch information
d0k committed Mar 24, 2017
1 parent 80aca9b commit 65bb8ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Target/AMDGPU/SIMachineScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SISchedulerBlockCreatorVariant,
SISchedulerBlockSchedulerVariant>
static const std::pair<SISchedulerBlockCreatorVariant,
SISchedulerBlockSchedulerVariant>
Variants[] = {
{ LatenciesAlone, BlockRegUsageLatency },
// { LatenciesAlone, BlockRegUsage },
Expand All @@ -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<SISchedulerBlockCreatorVariant,
SISchedulerBlockSchedulerVariant>
static const std::pair<SISchedulerBlockCreatorVariant,
SISchedulerBlockSchedulerVariant>
Variants[] = {
// { LatenciesAlone, BlockRegUsageLatency },
{ LatenciesAlone, BlockRegUsage },
Expand Down

0 comments on commit 65bb8ef

Please sign in to comment.