diff options
author | Duncan Sands <baldrick@free.fr> | 2011-01-30 18:03:50 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-01-30 18:03:50 +0000 |
commit | b67edc6a2910034aaadc1b8db75f667cdbf3a11d (patch) | |
tree | 4a931a45984b103bc6f8fe94d415bf3c661b400d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 946e1522b6df5fb0eecd78913a98d310477f6a64 (diff) | |
download | bcm5719-llvm-b67edc6a2910034aaadc1b8db75f667cdbf3a11d.tar.gz bcm5719-llvm-b67edc6a2910034aaadc1b8db75f667cdbf3a11d.zip |
Transform (X/Y)*Y into X if the division is exact. Instcombine already knows how
to do this and more, but would only do it if X/Y had only one use. Spotted as the
most common missed simplification in SPEC by my auto-simplifier, now that it knows
about nuw/nsw/exact flags. This removes a bunch of multiplications from 447.dealII
and 483.xalancbmk. It also removes a lot from tramp3d-v4, which results in much
more inlining.
llvm-svn: 124560
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions