diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-07 01:58:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-07 01:58:32 +0000 |
commit | ff659b5b8635ead41d68dfad27c4f5fbe5f17fd5 (patch) | |
tree | 3cd591b6c3d3185520bbe434e39679ddc68c3e55 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 22988cf493ec0f1ff891d1c1f8d69d30e4bd508d (diff) | |
download | bcm5719-llvm-ff659b5b8635ead41d68dfad27c4f5fbe5f17fd5.tar.gz bcm5719-llvm-ff659b5b8635ead41d68dfad27c4f5fbe5f17fd5.zip |
Arithmetic instructions don't set EFLAGS bits OF and CF bits
the same say the "test" instruction does in overflow cases,
so eliminating the test is only safe when those bits aren't
needed, as is the case for COND_E and COND_NE, or if it
can be proven that no overflow will occur. For now, just
restrict the optimization to COND_E and COND_NE and don't
do any overflow analysis.
llvm-svn: 66318
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions