summaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-01-02 18:19:07 +0000
committerCraig Topper <craig.topper@intel.com>2019-01-02 18:19:07 +0000
commit3516de362c3db0f3fab130edb110b2dc1cc20806 (patch)
tree532d6405148e2033aa45bbb3169718d7d04ba35d /lldb
parentdb6fd29fe8578aaa3b8a4be39d6202321363d5d6 (diff)
[DAGCombiner] After performing the division by constant optimization for a DIV or REM node, replace the users of the corresponding REM or DIV node if it exists.
Currently we expand the two nodes separately. This gives DAG combiner an opportunity to optimize the expanded sequence taking into account only one set of users. When we expand the other node we'll create the expansion again, but might not be able to optimize it the same way. So the nodes won't CSE and we'll have two similarish sequences in the same basic block. By expanding both nodes at the same time we'll avoid prematurely optimizing the expansion until both the division and remainder have been replaced. Improves the test case from PR38217. There may be additional opportunities after this. Differential Revision: https://reviews.llvm.org/D56145
Diffstat (limited to 'lldb')
0 files changed, 0 insertions, 0 deletions