summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2017-10-13 21:16:15 +0000
committerQuentin Colombet <qcolombet@apple.com>2017-10-13 21:16:15 +0000
commit4a6b75012df35e105b4b0f0eca0e324479f8a3f7 (patch)
treed01843d2563b46dfe6c5332d3a8e37942052c5e0 /llvm/lib/Transforms
parentd58265ad5567e0177e29eeedbe1b16fc8c6f7fb5 (diff)
downloadbcm5719-llvm-4a6b75012df35e105b4b0f0eca0e324479f8a3f7.tar.gz
bcm5719-llvm-4a6b75012df35e105b4b0f0eca0e324479f8a3f7.zip
[RegisterBankInfo] Cache the getMinimalPhysRegClass information
TargetRegisterInfo::getMinimalPhysRegClass is actually pretty expensive because it has to iterate over all the register classes. Cache this information as we need and get it so that we limit its usage. Right now, we heavily rely on it, because this is how we get the mapping for vregs defined by copies from physreg (i.e., the one that are ABI related). Improve compile time by up to 10% for that pass. NFC llvm-svn: 315759
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud