aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-02 07:07:58 +0000
committerChris Lattner <sabre@nondot.org>2005-09-02 07:07:58 +0000
commit7b4ad94282b94e1827be29b4db73fdf6e241f748 (patch)
treeb936df4c559aa504e1b1487c98648a48f6c92ff6 /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
parent2cd85da3ed8e703729fb5adfe8cc2f9b1dd2f6a8 (diff)
Fix a problem that Dan Berlin noticed, where reassociation would not succeed
in building maximal expressions before simplifying them. In particular, i cases like this: X-(A+B+X) the code would consider A+B+X to be a maximal expression (not understanding that the single use '-' would be turned into a + later), simplify it (a noop) then later get simplified again. Each of these simplify steps is where the cost of reassociation comes from, so this patch should speed up the already fast pass a bit. Thanks to Dan for noticing this! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
0 files changed, 0 insertions, 0 deletions