SelectionDAG: Remove a tautological dyn_cast. NFC
authorJustin Bogner <mail@justinbogner.com>
Wed, 23 Mar 2016 18:15:33 +0000 (18:15 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 23 Mar 2016 18:15:33 +0000 (18:15 +0000)
Index is already a StoreSDNode, so this dyn_cast doesn't do anything.

llvm-svn: 264177

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index a8faa75..0aecaa4 100644 (file)
@@ -11320,9 +11320,8 @@ void DAGCombiner::getStoreMergeAndAliasCandidates(
       break;
 
     // No truncation.
-    if (StoreSDNode *St = dyn_cast<StoreSDNode>(Index))
-      if (St->isTruncatingStore())
-        break;
+    if (Index->isTruncatingStore())
+      break;
 
     // The stored memory type must be the same.
     if (Index->getMemoryVT() != MemVT)