From 1849244685bc42b07b1b14e3f62e15c535e74c39 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Thu, 2 Jan 2025 17:29:55 +0000 Subject: [CodeGen] Remove atEnd method from defusechain iterators (#120610) This was not used much and there are better ways of writing it. --- llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SwiftErrorValueTracking.cpp') diff --git a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp index 74a94d6..decffdc 100644 --- a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp +++ b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp @@ -259,7 +259,7 @@ void SwiftErrorValueTracking::propagateVRegs() { for (const auto &Use : VRegUpwardsUse) { const MachineBasicBlock *UseBB = Use.first.first; Register VReg = Use.second; - if (!MRI.def_begin(VReg).atEnd()) + if (!MRI.def_empty(VReg)) continue; #ifdef EXPENSIVE_CHECKS -- cgit v1.1