[llvm] Fixes non-functional changes found static analyer (PR #171197)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 00:06:33 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:
And bellow in func it is from the first operand that it is taken Imm
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp#L5820
https://github.com/llvm/llvm-project/pull/171197
More information about the llvm-commits
mailing list