mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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
This commit is contained in:
1 parent
0bbf3052c2
commit
b2e5db94cf
1 file changed
+3
-1
@@ -233,7 +233,9 @@ public:
|
|||||||
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
|
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
|
||||||
&& (unsigned)regNum < MRegisterInfo::FirstVirtualRegister;
|
&& (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 isMachineRegister() const { return !isVirtualRegister(); }
|
||||||
bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }
|
bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }
|
||||||
bool isPCRelativeDisp() const { return opType == MO_PCRelativeDisp; }
|
bool isPCRelativeDisp() const { return opType == MO_PCRelativeDisp; }
|
||||||
|
|||||||
Reference in new issue
Block a user