From: Justin Bogner Date: Wed, 23 Mar 2016 18:15:33 +0000 (+0000) Subject: SelectionDAG: Remove a tautological dyn_cast. NFC X-Git-Tag: llvmorg-3.9.0-rc1~11140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c35c10593bacf534ed93081733dddf2c5396b767;p=platform%2Fupstream%2Fllvm.git SelectionDAG: Remove a tautological dyn_cast. NFC Index is already a StoreSDNode, so this dyn_cast doesn't do anything. llvm-svn: 264177 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a8faa75..0aecaa4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -11320,9 +11320,8 @@ void DAGCombiner::getStoreMergeAndAliasCandidates( break; // No truncation. - if (StoreSDNode *St = dyn_cast(Index)) - if (St->isTruncatingStore()) - break; + if (Index->isTruncatingStore()) + break; // The stored memory type must be the same. if (Index->getMemoryVT() != MemVT)