aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-01-07 15:43:46 +0000
committerJay Foad <jay.foad@amd.com>2020-07-17 11:02:13 +0100
commit62fd7f767c4151b4ec3f4f703e73a27c52f5315c (patch)
tree0ce61d564f5597b8679078dc70ba1f398ffc99ed /clang/lib/Frontend/CompilerInvocation.cpp
parentf3fab392f57421a5bdabfb7e40820257d8f637b2 (diff)
downloadllvm-62fd7f767c4151b4ec3f4f703e73a27c52f5315c.zip
llvm-62fd7f767c4151b4ec3f4f703e73a27c52f5315c.tar.gz
llvm-62fd7f767c4151b4ec3f4f703e73a27c52f5315c.tar.bz2
[MachineScheduler] Fix the TopDepth/BotHeightReduce latency heuristics
tryLatency compares two sched candidates. For the top zone it prefers the one with lesser depth, but only if that depth is greater than the total latency of the instructions we've already scheduled -- otherwise its latency would be hidden and there would be no stall. Unfortunately it only tests the depth of one of the candidates. This can lead to situations where the TopDepthReduce heuristic does not kick in, but a lower priority heuristic chooses the other candidate, whose depth *is* greater than the already scheduled latency, which causes a stall. The fix is to apply the heuristic if the depth of *either* candidate is greater than the already scheduled latency. All this also applies to the BotHeightReduce heuristic in the bottom zone. Differential Revision: https://reviews.llvm.org/D72392
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions