// If this is an ModuleToFunctionPassAdaptorParallel, then we need to merge in
// the timing data for the other threads.
- if (auto *asyncMTFPass =
- dyn_cast<ModuleToFunctionPassAdaptorParallel>(pass)) {
+ if (isa<ModuleToFunctionPassAdaptorParallel>(pass)) {
// The asychronous pipeline timers should exist as children of root timers
// for other threads.
for (auto &rootTimer : llvm::make_early_inc_range(rootTimers)) {
}
// Next handle DAG leaf: operand or attribute
- if (auto *operand = opArg.dyn_cast<NamedTypeConstraint *>()) {
+ if (opArg.is<NamedTypeConstraint *>()) {
emitOperandMatch(tree, i, depth, indent);
- } else if (auto *namedAttr = opArg.dyn_cast<NamedAttribute *>()) {
+ } else if (opArg.is<NamedAttribute *>()) {
emitAttributeMatch(tree, i, depth, indent);
} else {
PrintFatalError(loc, "unhandled case when matching op");