diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-06-09 12:34:50 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-06-09 12:34:50 +0000 |
| commit | 592d439efee50c81b44285ea718c881281320ce0 (patch) | |
| tree | 2a04d50e5296e9e93279594b19751f0e06c587dc /lib/Bitcode/Reader | |
| parent | bc72c8f0d8dbab5e1ce748cc390254a06e9a5c0a (diff) | |
| download | llvm-592d439efee50c81b44285ea718c881281320ce0.tar.gz llvm-592d439efee50c81b44285ea718c881281320ce0.tar.bz2 llvm-592d439efee50c81b44285ea718c881281320ce0.tar.xz | |
[X86] Avoid emitting unnecessary test instructions.
This patch teaches the backend how to check for the 'NoSignedWrap' flag on
binary operations to improve the emission of 'test' instructions.
If the result of a binary operation is known not to overflow we know that
resetting the Overflow flag is unnecessary and so we can avoid emitting
the test instruction.
Patch by Marcello Maggioni.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions
