diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-29 12:34:05 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-29 12:34:05 +0000 |
commit | 65bb14d3683e64cc50ae9004367f664f9c9b368c (patch) | |
tree | a8f36317a446d0df9a7f5d47987b25a683d73a23 /llvm/lib/Transforms | |
parent | e1af156bdf4cfe02621a68aef58167b371fa9d90 (diff) | |
download | bcm5719-llvm-65bb14d3683e64cc50ae9004367f664f9c9b368c.tar.gz bcm5719-llvm-65bb14d3683e64cc50ae9004367f664f9c9b368c.zip |
Add the missing sub identity "A-(A-B) -> B" to DAGCombine.
This happens e.g. for code like "X - X%10" where we lower the modulo operation
to a series of multiplies and shifts that are then subtracted from X, leading to
this missed optimization.
llvm-svn: 124532
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions