summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-06-09 12:34:50 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-06-09 12:34:50 +0000
commit592d439efee50c81b44285ea718c881281320ce0 (patch)
tree2a04d50e5296e9e93279594b19751f0e06c587dc /lib/Bitcode/Reader
parentbc72c8f0d8dbab5e1ce748cc390254a06e9a5c0a (diff)
downloadllvm-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