[llvm] r264177 - SelectionDAG: Remove a tautological dyn_cast. NFC

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 11:15:33 PDT 2016


Author: bogner
Date: Wed Mar 23 13:15:33 2016
New Revision: 264177

URL: http://llvm.org/viewvc/llvm-project?rev=264177&view=rev
Log:
SelectionDAG: Remove a tautological dyn_cast. NFC

Index is already a StoreSDNode, so this dyn_cast doesn't do anything.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=264177&r1=264176&r2=264177&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Mar 23 13:15:33 2016
@@ -11320,9 +11320,8 @@ void DAGCombiner::getStoreMergeAndAliasC
       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)




More information about the llvm-commits mailing list