From 13d2f3bbc0282a05e6de4a84bd2fc7f5a1e0985b 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 llvm-svn: 11275 --- llvm/include/llvm/CodeGen/MachineInstr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 32e728436cc8..95a7f07a450a 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/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; }