diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-03-10 17:56:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-03-10 17:56:03 +0000 |
commit | c17731d65d2c059a71256ee995cbb057ff28a109 (patch) | |
tree | ef447e97a03696376e42c465b741d913ae844b1f /test/Feature | |
parent | 63155f967c6f97ba1c9958a7282ea67517b8abf8 (diff) | |
download | external_llvm-c17731d65d2c059a71256ee995cbb057ff28a109.zip external_llvm-c17731d65d2c059a71256ee995cbb057ff28a109.tar.gz external_llvm-c17731d65d2c059a71256ee995cbb057ff28a109.tar.bz2 |
Make this transformation slightly less agressive and more correct.
The 'CmpInst::isFalseWhenEqual' function returns 'false' for values other than
simply equality. For instance, it returns 'false' for <= or >=. This isn't the
correct behavior for this transformation, which is checking for strict equality
and non-equality. It was causing the gcc.c-torture/execute/frame-address.c test
to fail because it would completely (and incorrectly) optimize a whole function
into a 'ret i32 0'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
0 files changed, 0 insertions, 0 deletions