From fbe20deb95f36a105e4c55667eeae2a2f7a09fe8 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 3 Nov 2016 17:42:02 +0000 Subject: [PATCH] Remove a redundant condition found by PVS-Studio. Filed http://llvm.org/PR30897 to teach Clang to warn on this kind of stuff. llvm-svn: 285945 --- lib/Target/ARM/ARMISelDAGToDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp index 89dcffc4099..e35ec3f8a3a 100644 --- a/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp @@ -1561,8 +1561,8 @@ bool ARMDAGToDAGISel::tryT1IndexedLoad(SDNode *N) { LoadSDNode *LD = cast(N); EVT LoadedVT = LD->getMemoryVT(); ISD::MemIndexedMode AM = LD->getAddressingMode(); - if (AM == ISD::UNINDEXED || LD->getExtensionType() != ISD::NON_EXTLOAD || - AM != ISD::POST_INC || LoadedVT.getSimpleVT().SimpleTy != MVT::i32) + if (AM != ISD::POST_INC || LD->getExtensionType() != ISD::NON_EXTLOAD || + LoadedVT.getSimpleVT().SimpleTy != MVT::i32) return false; auto *COffs = dyn_cast(LD->getOffset());