[llvm] d7032bc - [PowerPC][NFC] Reclaim TSFlags bit 6
Jinsong Ji via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 07:04:51 PST 2020
Author: Jinsong Ji
Date: 2020-01-21T15:04:05Z
New Revision: d7032bc3c009d3d2e7fdd6427fa629589fe93096
URL: https://github.com/llvm/llvm-project/commit/d7032bc3c009d3d2e7fdd6427fa629589fe93096
DIFF: https://github.com/llvm/llvm-project/commit/d7032bc3c009d3d2e7fdd6427fa629589fe93096.diff
LOG: [PowerPC][NFC] Reclaim TSFlags bit 6
We removed UseVSXReg flag in https://reviews.llvm.org/D58685
But we did not reclain the bit 6 it was assigned,
this will become confusing and a hole later..
We should reclaim it as early as possible before new bits.
Reviewed By: sfertile
Differential Revision: https://reviews.llvm.org/D72649
Added:
Modified:
llvm/lib/Target/PowerPC/PPCInstrFormats.td
llvm/lib/Target/PowerPC/PPCInstrInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCInstrFormats.td b/llvm/lib/Target/PowerPC/PPCInstrFormats.td
index 115bd44ea202..30c269805b68 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrFormats.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrFormats.td
@@ -39,7 +39,7 @@ class I<bits<6> opcode, dag OOL, dag IOL, string asmstr, InstrItinClass itin>
// Indicate that this instruction is of type X-Form Load or Store
bits<1> XFormMemOp = 0;
- let TSFlags{7} = XFormMemOp;
+ let TSFlags{6} = XFormMemOp;
// Fields used for relation models.
string BaseName = "";
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
index 2fe8df0e1d68..21da3457dc9e 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
@@ -65,7 +65,7 @@ enum {
NewDef_Shift = 6,
/// This instruction is an X-Form memory operation.
- XFormMemOp = 0x1 << (NewDef_Shift+1)
+ XFormMemOp = 0x1 << NewDef_Shift
};
} // end namespace PPCII
More information about the llvm-commits
mailing list