[all-commits] [llvm/llvm-project] 865f54: [DAG] ISD::is*Load/is*Store - merge isa<>/cast<> c...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Nov 16 03:30:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 865f54e501739f382d33866baebfd0f9aaad01bb
https://github.com/llvm/llvm-project/commit/865f54e501739f382d33866baebfd0f9aaad01bb
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Log Message:
-----------
[DAG] ISD::is*Load/is*Store - merge isa<>/cast<> calls into single dyn_cast<>. NFCI.
cast<> repeats most of the work that isa<> will have already done (and even calls assert(isa<>) in debug builds) - just use dyn_cast and a pointer check to avoid all this duplicated work.
More information about the All-commits
mailing list