diff options
author | Dan Gohman <gohman@apple.com> | 2007-11-26 23:46:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-11-26 23:46:11 +0000 |
commit | 9a69341725c48d29bf9d47663cf093691b52bc7c (patch) | |
tree | 48313b6f297d2e695906a5103aca4d79004f4d9f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 084b0eb3ca6774d978cf4b77b45fb8fdd7e42d7a (diff) | |
download | bcm5719-llvm-9a69341725c48d29bf9d47663cf093691b52bc7c.tar.gz bcm5719-llvm-9a69341725c48d29bf9d47663cf093691b52bc7c.zip |
Don't lower srem/urem X%C to X-X/C*C unless the division is actually
optimized. This avoids creating illegal divisions when the combiner is
running after legalize; this fixes PR1815. Also, it produces better
code in the included testcase by avoiding the subtract and multiply
when the division isn't optimized.
llvm-svn: 44341
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions