[llvm] r285945 - Remove a redundant condition found by PVS-Studio.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 10:42:02 PDT 2016
Author: chandlerc
Date: Thu Nov 3 12:42:02 2016
New Revision: 285945
URL: http://llvm.org/viewvc/llvm-project?rev=285945&view=rev
Log:
Remove a redundant condition found by PVS-Studio.
Filed http://llvm.org/PR30897 to teach Clang to warn on this kind of
stuff.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp?rev=285945&r1=285944&r2=285945&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp Thu Nov 3 12:42:02 2016
@@ -1561,8 +1561,8 @@ bool ARMDAGToDAGISel::tryT1IndexedLoad(S
LoadSDNode *LD = cast<LoadSDNode>(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<ConstantSDNode>(LD->getOffset());
More information about the llvm-commits
mailing list