summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/constant-hoisting.ll
Commit message (Collapse)AuthorAgeFilesLines
* [DAG] Refactor DAGCombiner::ReassociateOpsBjorn Pettersson2019-04-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [ARM] Add an extra test for constant hoist. NFCDavid Green2019-04-101-0/+175
llvm-svn: 358128
OpenPOWER on IntegriCloud