diff options
author | Craig Topper <craig.topper@intel.com> | 2020-02-07 10:18:01 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-02-07 10:31:19 -0800 |
commit | 278578744a4773d592c8b4be6827472a4a77a9c8 (patch) | |
tree | 5871503d31f92294fcbd9c536fdd6748ae8c5579 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 13f8be68e0b833e83f6501a8d76fedfcdc457331 (diff) | |
download | llvm-278578744a4773d592c8b4be6827472a4a77a9c8.zip llvm-278578744a4773d592c8b4be6827472a4a77a9c8.tar.gz llvm-278578744a4773d592c8b4be6827472a4a77a9c8.tar.bz2 |
[X86] Handle SETB_C32r/SETB_C64r in flag copy lowering the same way we handle SBB
Previously we took the restored flag in a GPR, extended it 32 or 64 bits. Then used as an input to a sub from 0. This requires creating a zero extend and creating a 0.
This patch changes this to just use an ADD with 255 to restore the carry flag and keep the SETB_C32r/SETB_C64r. Exactly like we handle SBB which is what SETB becomes.
Differential Revision: https://reviews.llvm.org/D74152
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions