[llvm] Non-functional changes found static analyer (PR #171197)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 22:21:51 PST 2025


================
@@ -5809,9 +5809,6 @@ bool PPCInstrInfo::getMemOperandWithOffsetWidth(
   if (!LdSt.getOperand(1).isImm() ||
       (!LdSt.getOperand(2).isReg() && !LdSt.getOperand(2).isFI()))
     return false;
-  if (!LdSt.getOperand(1).isImm() ||
-      (!LdSt.getOperand(2).isReg() && !LdSt.getOperand(2).isFI()))
----------------
Seraphimt wrote:

But checks full identically and don't have side effects(as far as I understand). I researched history of commits and most probably  it's merge artefact here. There did merge, revert, re-merge and so on.

https://github.com/llvm/llvm-project/pull/171197


More information about the llvm-commits mailing list