[llvm] 1dbef64 - Fix "Value stored to 'RegForm' is never read" static analyzer warnings. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 06:22:55 PST 2020
Author: Simon Pilgrim
Date: 2020-03-05T14:22:24Z
New Revision: 1dbef64ef3259491a611cb0b02a8a8fcc57d070a
URL: https://github.com/llvm/llvm-project/commit/1dbef64ef3259491a611cb0b02a8a8fcc57d070a
DIFF: https://github.com/llvm/llvm-project/commit/1dbef64ef3259491a611cb0b02a8a8fcc57d070a.diff
LOG: Fix "Value stored to 'RegForm' is never read" static analyzer warnings. NFC.
Added:
Modified:
llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
index 8999da34d71e..e14b20a653ed 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
@@ -308,7 +308,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
CASE_FMA4_PACKED_RR(FMADD)
CASE_FMA4_SCALAR_RR(FMADD)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FMADD)
@@ -324,7 +323,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
CASE_FMA4_PACKED_RR(FMSUB)
CASE_FMA4_SCALAR_RR(FMSUB)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FMSUB)
@@ -342,7 +340,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
CASE_FMA4_PACKED_RR(FNMADD)
CASE_FMA4_SCALAR_RR(FNMADD)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FNMADD)
@@ -360,7 +357,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
CASE_FMA4_PACKED_RR(FNMSUB)
CASE_FMA4_SCALAR_RR(FNMSUB)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FNMSUB)
@@ -379,7 +375,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
break;
CASE_FMA4_PACKED_RR(FMADDSUB)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FMADDSUB)
@@ -394,7 +389,6 @@ static bool printFMAComments(const MCInst *MI, raw_ostream &OS) {
break;
CASE_FMA4_PACKED_RR(FMSUBADD)
- RegForm = true;
AccName = getRegName(MI->getOperand(NumOperands - 1).getReg());
LLVM_FALLTHROUGH;
CASE_FMA4_PACKED_RM(FMSUBADD)
More information about the llvm-commits
mailing list