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 | dfbdc71ea1bf22c72422afa97948df90bc0a0eb2 (patch) | |
tree | fddaf28a0d768e767158a412d8f33df5501997f4 /llvm/lib/ExecutionEngine/RTDyldMemoryManager.cpp | |
parent | 4db1abea150d7cfdbb7f4f402103f3d84d27ba28 (diff) | |
download | bcm5719-llvm-dfbdc71ea1bf22c72422afa97948df90bc0a0eb2.tar.gz bcm5719-llvm-dfbdc71ea1bf22c72422afa97948df90bc0a0eb2.zip |
[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.
llvm-svn: 210468
Diffstat (limited to 'llvm/lib/ExecutionEngine/RTDyldMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions