aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-08-31 01:53:09 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-08-31 01:53:09 +0000
commit67e72dee795c477c9636a78498d24e76e9a8d7a4 (patch)
tree2f1062b5cbca2bf65e662ffae8c869183f5e2335 /clang/lib/Frontend/CompilerInvocation.cpp
parent1aad27e17bc40273849802240439f6e7d49ac81d (diff)
downloadllvm-67e72dee795c477c9636a78498d24e76e9a8d7a4.zip
llvm-67e72dee795c477c9636a78498d24e76e9a8d7a4.tar.gz
llvm-67e72dee795c477c9636a78498d24e76e9a8d7a4.tar.bz2
AMDGPU: Use set for tracked registers
The majority of the time spent in the pass checking for the register reads. Rather than searching all of the defined registers for uses in each instruction, use a set of defined registers and check the operands of the instruction. This process still is algorithmically not great, but with the additional trick of skipping the analysis for addresses with one use, this brings one slow testcase into a reasonable range. llvm-svn: 312206
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions