aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 06:42:05 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 06:42:05 +0000
commitd8529abca155e9add3d038481c9c7db119220a2b (patch)
treee04a0cb0cec930ba0142880ca192359936aaa901 /lib/CodeGen/TwoAddressInstructionPass.cpp
parent443a6d255b82e2aa47eaf023af9d287ac0cfaa09 (diff)
downloadexternal_llvm-d8529abca155e9add3d038481c9c7db119220a2b.tar.gz
external_llvm-d8529abca155e9add3d038481c9c7db119220a2b.tar.bz2
external_llvm-d8529abca155e9add3d038481c9c7db119220a2b.zip
Rename all the M_* flags to be namespace qualified enums, and switch
all clients over to using predicates instead of these flags directly. These are now private values which are only to be used to statically initialize the tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index e77b95eeb9..3167fccf40 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -144,7 +144,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
// so, swap the B and C operands. This makes the live ranges of A
// and C joinable.
// FIXME: This code also works for A := B op C instructions.
- if ((TID->Flags & M_COMMUTABLE) && mi->getNumOperands() >= 3) {
+ if (TID->isCommutable() && mi->getNumOperands() >= 3) {
assert(mi->getOperand(3-si).isRegister() &&
"Not a proper commutative instruction!");
unsigned regC = mi->getOperand(3-si).getReg();