[llvm] r240672 - DAGCombiner: Remove redundant check
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Jun 25 11:47:02 PDT 2015
Author: arsenm
Date: Thu Jun 25 13:47:02 2015
New Revision: 240672
URL: http://llvm.org/viewvc/llvm-project?rev=240672&view=rev
Log:
DAGCombiner: Remove redundant check
MemIntrinsicSDNode is already a subclass of MemSDNode,
so the MemSDNode check is sufficient.
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=240672&r1=240671&r2=240672&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jun 25 13:47:02 2015
@@ -14023,7 +14023,7 @@ void DAGCombiner::GatherAllAliases(SDNod
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();
More information about the llvm-commits
mailing list