summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2015-03-25 00:10:24 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2015-03-25 00:10:24 +0000
commit284f0451cf5320cca1764eb5ce00de7734d82467 (patch)
tree84d1f8e6792d74be4be5f597a534f07297e2afee /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent4dbd88f3b47284c67b366d2f3e7f932a2c7fb081 (diff)
downloadbcm5719-llvm-284f0451cf5320cca1764eb5ce00de7734d82467.tar.gz
bcm5719-llvm-284f0451cf5320cca1764eb5ce00de7734d82467.zip
'optnone' should not disable DAG combiner.
Reverts the code change from r221168 and the relevant test. It was a mistake to disable the combiner, and based on the ultimate definition of 'optnone' we shouldn't have considered the test case as failing in the first place. llvm-svn: 233153
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 35554796416..dbdde4e2dcf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1183,11 +1183,6 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
LegalOperations = Level >= AfterLegalizeVectorOps;
LegalTypes = Level >= AfterLegalizeTypes;
- // Early exit if this basic block is in an optnone function.
- if (DAG.getMachineFunction().getFunction()->hasFnAttribute(
- Attribute::OptimizeNone))
- return;
-
// Add all the dag nodes to the worklist.
for (SelectionDAG::allnodes_iterator I = DAG.allnodes_begin(),
E = DAG.allnodes_end(); I != E; ++I)
OpenPOWER on IntegriCloud