summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/regex2.h
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2019-04-29 17:50:10 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2019-04-29 17:50:10 +0000
commit820994572c636c5817488f7e9ef5074b0b2a7ed0 (patch)
tree7636e4473daae26056006cd3f3c835b89846de75 /llvm/lib/Support/regex2.h
parent15cb1f1501047ac4fb4ae142a9b4570a3cb74741 (diff)
downloadbcm5719-llvm-820994572c636c5817488f7e9ef5074b0b2a7ed0.tar.gz
bcm5719-llvm-820994572c636c5817488f7e9ef5074b0b2a7ed0.zip
[DAG] Refactor DAGCombiner::ReassociateOps
Summary: Extract the logic for doing reassociations from DAGCombiner::reassociateOps into a helper function DAGCombiner::reassociateOpsCommutative, and use that helper to trigger reassociation on the original operand order, or the commuted operand order. Codegen is not identical since the operand order will be different when doing the reassociations for the commuted case. That causes some unfortunate churn in some test cases. Apart from that this should be NFC. Reviewers: spatel, craig.topper, tstellar Reviewed By: spatel Subscribers: dmgreen, dschuff, jvesely, nhaehnle, javed.absar, sbc100, jgravelle-google, hiraditya, aheejin, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61199 llvm-svn: 359476
Diffstat (limited to 'llvm/lib/Support/regex2.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud