mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
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
This commit is contained in:
parent
ac4361fcf8
commit
fbe20deb95
@ -1561,8 +1561,8 @@ bool ARMDAGToDAGISel::tryT1IndexedLoad(SDNode *N) {
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user