Skip to content

Commit 7b94018

Browse files
committed
fixup! Minor changes
Change-Id: Iba6ea3a80163c9553dd821668ebe6409302da552
1 parent 4e7fe38 commit 7b94018

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/utils/TableGen/CompressInstEmitter.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class CompressInstEmitter {
124124
const RecordKeeper &Records;
125125
const CodeGenTarget Target;
126126
std::vector<CompressPat> CompressPatterns;
127-
unsigned SourceLastTiedOp; // Postion of the last tied operand in Source Inst
127+
unsigned SourceLastTiedOp; // postion of the last tied operand in Source Inst
128128
void addDagOperandMapping(const Record *Rec, const DagInit *Dag,
129129
const CodeGenInstruction &Inst,
130130
IndexedMap<OpData> &OperandMap, bool IsSourceInst);
@@ -220,18 +220,16 @@ void CompressInstEmitter::addDagOperandMapping(const Record *Rec,
220220
// are represented.
221221
unsigned TiedCount = 0;
222222
unsigned OpNo = 0;
223-
if (IsSourceInst) {
223+
if (IsSourceInst)
224224
SourceLastTiedOp = std::numeric_limits<unsigned int>::max();
225-
}
226225
for (const auto &Opnd : Inst.Operands) {
227226
int TiedOpIdx = Opnd.getTiedRegister();
228227
if (-1 != TiedOpIdx) {
229228
// Set the entry in OperandMap for the tied operand we're skipping.
230229
OperandMap[OpNo].Kind = OperandMap[TiedOpIdx].Kind;
231230
OperandMap[OpNo].Data = OperandMap[TiedOpIdx].Data;
232-
if (IsSourceInst) {
231+
if (IsSourceInst)
233232
SourceLastTiedOp = OpNo;
234-
}
235233
++OpNo;
236234
++TiedCount;
237235
continue;

0 commit comments

Comments
 (0)