DAGCombiner: Remove redundant check
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 25 Jun 2015 18:47:02 +0000 (18:47 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 25 Jun 2015 18:47:02 +0000 (18:47 +0000)
MemIntrinsicSDNode is already a subclass of MemSDNode,
so the MemSDNode check is sufficient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240672 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 8f7296a75acd6a1544837585c798b391577568ee..66dada4ec15f448f07125bcdbd13d89c7a9ebe3e 100644 (file)
@@ -14023,7 +14023,7 @@ void DAGCombiner::GatherAllAliases(SDNode *N, SDValue OriginalChain,
          UIE = M->use_end(); UI != UIE; ++UI)
       if (UI.getUse().getValueType() == MVT::Other &&
           Visited.insert(*UI).second) {
          UIE = M->use_end(); UI != UIE; ++UI)
       if (UI.getUse().getValueType() == MVT::Other &&
           Visited.insert(*UI).second) {
-        if (isa<MemIntrinsicSDNode>(*UI) || isa<MemSDNode>(*UI)) {
+        if (isa<MemSDNode>(*UI)) {
           // We've not visited this use, and we care about it (it could have an
           // ordering dependency with the original node).
           Aliases.clear();
           // We've not visited this use, and we care about it (it could have an
           // ordering dependency with the original node).
           Aliases.clear();