summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-06-15 06:53:50 +0000
committerOwen Anderson <resistor@mac.com>2011-06-15 06:53:50 +0000
commit86fd3c0058027e9d7ad74f5848945cc476b8d01b (patch)
treedd82b59795ab6ff078197603ef65b6094bf5a65e /clang/lib/CodeGen/CGDecl.cpp
parent5bcbd73c38e2413e16465219bbdff0fb992d68a0 (diff)
downloadbcm5719-llvm-86fd3c0058027e9d7ad74f5848945cc476b8d01b.tar.gz
bcm5719-llvm-86fd3c0058027e9d7ad74f5848945cc476b8d01b.zip
Replace the statically generated hashtables for checking register relationships with just scanning the (typically tiny) static lists.
At the time I wrote this code (circa 2007), TargetRegisterInfo was using a std::set to perform these queries. Switching to the static hashtables was an obvious improvement, but in reality there's no reason to do anything other than scan. With this change, total LLC time on a whole-program 403.gcc is reduced by approximately 1.5%, almost all of which comes from a 15% reduction in LiveVariables time. It also reduces the binary size of LLC by 86KB, thanks to eliminating a bunch of very large static tables. llvm-svn: 133051
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud