summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-03-23 18:15:33 +0000
committerJustin Bogner <mail@justinbogner.com>2016-03-23 18:15:33 +0000
commitc35c10593bacf534ed93081733dddf2c5396b767 (patch)
tree77414df91b91f1571c41eaa435ca10c934c009c1 /llvm/lib/CodeGen
parent6af61dec1ce2fcad3e41596fa1b58a72bb8a6155 (diff)
downloadbcm5719-llvm-c35c10593bacf534ed93081733dddf2c5396b767.tar.gz
bcm5719-llvm-c35c10593bacf534ed93081733dddf2c5396b767.zip
SelectionDAG: Remove a tautological dyn_cast. NFC
Index is already a StoreSDNode, so this dyn_cast doesn't do anything. llvm-svn: 264177
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index a8faa75205a..0aecaa44005 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<StoreSDNode>(Index))
- if (St->isTruncatingStore())
- break;
+ if (Index->isTruncatingStore())
+ break;
// The stored memory type must be the same.
if (Index->getMemoryVT() != MemVT)
OpenPOWER on IntegriCloud