aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2019-01-21 19:11:26 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2019-01-21 19:11:26 +0000
commitf92ed6966eb898b1ab1587c5fb1bf059783977b0 (patch)
tree58583c47d14adf49943473acc1124cd52763f744 /llvm/lib/CodeGen/MachineVerifier.cpp
parent8441c467bf9b02638afc9fb3affce8eb1207e65d (diff)
downloadllvm-f92ed6966eb898b1ab1587c5fb1bf059783977b0.zip
llvm-f92ed6966eb898b1ab1587c5fb1bf059783977b0.tar.gz
llvm-f92ed6966eb898b1ab1587c5fb1bf059783977b0.tar.bz2
[AMDGPU] Fixed hazard recognizer to walk predecessors
Fixes two problems with GCNHazardRecognizer: 1. It only scans up to 5 instructions emitted earlier. 2. It does not take control flow into account. An earlier instruction from the previous basic block is not necessarily a predecessor. At the same time a real predecessor block is not scanned. The patch provides a way to distinguish between scheduler and hazard recognizer mode. It is OK to work with emitted instructions in the scheduler because we do not really know what will be emitted later and its order. However, when pass works as a hazard recognizer the schedule is already finalized, and we have full access to the instructions for the whole function, so we can properly traverse predecessors and their instructions. Differential Revision: https://reviews.llvm.org/D56923 llvm-svn: 351759
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
0 files changed, 0 insertions, 0 deletions