From: Simon Pilgrim Date: Thu, 5 Mar 2020 13:58:49 +0000 (+0000) Subject: Fix "Value stored to 'RegForm' is never read" static analyzer warnings. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dbef64ef3259491a611cb0b02a8a8fcc57d070a;p=platform%2Fupstream%2Fllvm.git Fix "Value stored to 'RegForm' is never read" static analyzer warnings. NFC. --- diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp index 8999da3..e14b20a 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)