aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-12-14 19:42:37 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-12-14 19:42:42 +0000
commit636089d8dce257b5f261824d907bdb3d26b7a46e (patch)
tree7880a61764884345cc837340861e534c7dbd0383 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent6efa850b096dc31f8e161374c1881ad715f9b946 (diff)
downloadllvm-636089d8dce257b5f261824d907bdb3d26b7a46e.zip
llvm-636089d8dce257b5f261824d907bdb3d26b7a46e.tar.gz
llvm-636089d8dce257b5f261824d907bdb3d26b7a46e.tar.bz2
[GVN] hasUsersIn - merge isa<> and cast<> into single dyn_cast<> and convert for-range loop to any_of() test. NFCI.
Avoid running isa<> and cast<> if we can - dyn_cast<> can more efficiently check for a safe cast and give the casted pointer.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions