mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[llvm-mca] use APint::operator[] to obtain the bit value. NFC
llvm-svn: 335131
This commit is contained in:
parent
f1bacf0b66
commit
17e1fccadc
@ -495,10 +495,8 @@ InstrBuilder::createInstruction(const MCInst &MCI) {
|
||||
}
|
||||
|
||||
assert(RegID && "Expected a valid register ID!");
|
||||
APInt CurrWriteMask = WriteMask & (1 << WriteIndex);
|
||||
bool UpdatesSuperRegisters = CurrWriteMask.getBoolValue();
|
||||
NewIS->getDefs().emplace_back(
|
||||
llvm::make_unique<WriteState>(WD, RegID, UpdatesSuperRegisters));
|
||||
NewIS->getDefs().emplace_back(llvm::make_unique<WriteState>(
|
||||
WD, RegID, /* ClearsSuperRegs */ WriteMask[WriteIndex]));
|
||||
++WriteIndex;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user