diff options
author | Craig Topper <craig.topper@intel.com> | 2018-12-09 18:02:37 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-12-09 18:02:37 +0000 |
commit | 2b09d17d93d8a3cdc98747a4d2d4d6be5840087f (patch) | |
tree | 7cda436a739edda55eda33a790ea46f68e4e5d5e /llvm/lib/TextAPI/ELF/TBEHandler.cpp | |
parent | 7e1ea993e0d3668dbbbf1097ead7b9e190aec23f (diff) | |
download | llvm-2b09d17d93d8a3cdc98747a4d2d4d6be5840087f.zip llvm-2b09d17d93d8a3cdc98747a4d2d4d6be5840087f.tar.gz llvm-2b09d17d93d8a3cdc98747a4d2d4d6be5840087f.tar.bz2 |
[X86] If the carry input to an addcarry/subborrow intrinsic is known to be 0, emit a flag setting ADD/SUB instead of ADC/SBB.
Previously we had to take the carry in and add -1 to it to set the carry flag so we could use it with ADC/SBB. But if we know its 0 then we don't need to bother.
This should go a long way towards fixing PR24545.
llvm-svn: 348727
Diffstat (limited to 'llvm/lib/TextAPI/ELF/TBEHandler.cpp')
0 files changed, 0 insertions, 0 deletions