diff options
author | Jay Foad <jay.foad@gmail.com> | 2019-10-02 08:44:15 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2019-10-02 08:44:15 +0000 |
commit | dafda610210d9ebc70580af358070017c8d0c0e6 (patch) | |
tree | eeec2c8a5976ad7a58fbd6225a558604bdd10e7a /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 47dbcbd8ec6bf6c0b9cbe5811e81a37cc55e73ef (diff) | |
download | llvm-dafda610210d9ebc70580af358070017c8d0c0e6.zip llvm-dafda610210d9ebc70580af358070017c8d0c0e6.tar.gz llvm-dafda610210d9ebc70580af358070017c8d0c0e6.tar.bz2 |
[AMDGPU] Make printf lowering faster when there are no printfs
Summary:
Printf lowering unconditionally visited every instruction in the module.
To make it faster in the common case where there are no printfs, look up
the printf function (if any) and iterate over its users instead.
Reviewers: rampitec, kzhuravl, alex-t, arsenm
Subscribers: jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68145
llvm-svn: 373433
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions