[all-commits] [llvm/llvm-project] 23e3e1: [GVN] GVNPass::ValueTable::lookupOrAdd - merge isa...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Wed Dec 14 11:49:12 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23e3e107dceb1fd8c1fb81d1229f6aab09a1fce2
https://github.com/llvm/llvm-project/commit/23e3e107dceb1fd8c1fb81d1229f6aab09a1fce2
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-12-14 (Wed, 14 Dec 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/GVN.cpp
Log Message:
-----------
[GVN] GVNPass::ValueTable::lookupOrAdd - merge isa<> and cast<> into single dyn_cast<>. NFCI.
Avoid calling separate isa<> and cast<> if we can - dyn_cast<> can more efficiently check for a safe cast and give the casted pointer.
More information about the All-commits
mailing list