[NFC][MC] Type uses of MCRegUnitIterator as MCRegister
authorMircea Trofin <mtrofin@google.com>
Mon, 5 Oct 2020 23:49:29 +0000 (16:49 -0700)
committerMircea Trofin <mtrofin@google.com>
Tue, 6 Oct 2020 19:09:56 +0000 (12:09 -0700)
commitd85b845cb2550216b2a05c5dee451f423a4e4946
tree997035cf77c9d10547b661fd3836cd7d03201de5
parent6e557bc40507cbc5e331179b26f7ae5fe9624294
[NFC][MC] Type uses of MCRegUnitIterator as MCRegister

This is one of many subsequent similar changes. Note that we're ok with
the parameter being typed as MCPhysReg, as MCPhysReg -> MCRegister is a
correct conversion; Register -> MCRegister assumes the former is indeed
physical, so we stop relying on the implicit conversion and use the
explicit, value-asserting asMCReg().

Differential Revision: https://reviews.llvm.org/D88862
llvm/include/llvm/CodeGen/LiveIntervals.h
llvm/include/llvm/CodeGen/TargetRegisterInfo.h
llvm/lib/CodeGen/BreakFalseDeps.cpp
llvm/lib/CodeGen/EarlyIfConversion.cpp