summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-10-27 04:14:24 +0000
committerCraig Topper <craig.topper@gmail.com>2015-10-27 04:14:24 +0000
commitee0c859788a87b9dd40536197e7a9f289bd71788 (patch)
treec304563cdafb102d6548a38e8a9c6024fba43fb2 /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
parent69798fb5ec6500bdff0e33442d732a06de98f419 (diff)
downloadbcm5719-llvm-ee0c859788a87b9dd40536197e7a9f289bd71788.tar.gz
bcm5719-llvm-ee0c859788a87b9dd40536197e7a9f289bd71788.zip
Convert cost table lookup functions to return a pointer to the entry or nullptr instead of the index.
This avoid mentioning the table name an extra time and allows the lookup to be done directly in the ifs by relying on the bool conversion of the pointer. While there make use of ArrayRef and std::find_if. llvm-svn: 251382
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud