summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-mca/InstrBuilder.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/tools/llvm-mca/InstrBuilder.cpp b/llvm/tools/llvm-mca/InstrBuilder.cpp
index dbdf0ed8098..b0019f96ece 100644
--- a/llvm/tools/llvm-mca/InstrBuilder.cpp
+++ b/llvm/tools/llvm-mca/InstrBuilder.cpp
@@ -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;
}
OpenPOWER on IntegriCloud