mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
[MCA][NFC] Removed unused method, and fixed a coverity issue.
The coverity issue was reported agaist class MCAOperand due to the lack of proper initialization for field Index. No functional change intended.
This commit is contained in:
@@ -46,7 +46,7 @@ class MCAOperand {
|
||||
kSFPImmediate, ///< Single-floating-point immediate operand.
|
||||
kDFPImmediate, ///< Double-Floating-point immediate operand.
|
||||
};
|
||||
MCAOperandType Kind = kInvalid;
|
||||
MCAOperandType Kind;
|
||||
|
||||
union {
|
||||
unsigned RegVal;
|
||||
@@ -62,7 +62,7 @@ class MCAOperand {
|
||||
unsigned Index;
|
||||
|
||||
public:
|
||||
MCAOperand() : FPImmVal(0) {}
|
||||
MCAOperand() : Kind(kInvalid), FPImmVal(), Index() {}
|
||||
|
||||
bool isValid() const { return Kind != kInvalid; }
|
||||
bool isReg() const { return Kind == kRegister; }
|
||||
|
||||
@@ -71,12 +71,6 @@ class SummaryView : public View {
|
||||
// Used to map resource indices to actual processor resource IDs.
|
||||
llvm::SmallVector<unsigned, 8> ResIdx2ProcResID;
|
||||
|
||||
// Compute the reciprocal throughput for the analyzed code block.
|
||||
// The reciprocal block throughput is computed as the MAX between:
|
||||
// - NumMicroOps / DispatchWidth
|
||||
// - Total Resource Cycles / #Units (for every resource consumed).
|
||||
double getBlockRThroughput() const;
|
||||
|
||||
/// Compute the data we want to print out in the object DV.
|
||||
void collectData(DisplayValues &DV) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user