From b2e5db94cfb36da77264d9b063e674e907d8458d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Feb 2004 20:30:40 +0000 Subject: [PATCH] Simplify condition, this does not change the predicate at all though git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11275 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 32e728436cc..95a7f07a450 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -233,7 +233,9 @@ public: return (opType == MO_VirtualRegister || opType == MO_MachineRegister) && (unsigned)regNum < MRegisterInfo::FirstVirtualRegister; } - bool isRegister() const { return isVirtualRegister() || isPhysicalRegister();} + bool isRegister() const { + return opType == MO_VirtualRegister || opType == MO_MachineRegister; + } bool isMachineRegister() const { return !isVirtualRegister(); } bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; } bool isPCRelativeDisp() const { return opType == MO_PCRelativeDisp; }