1
0
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:
Andrea Di Biagio 2018-06-20 14:30:17 +00:00
parent f1bacf0b66
commit 17e1fccadc

View File

@ -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;
}