[llvm] [X86] Fix reversed condition in ADC/SBB fold of COND_A compares (PR #228693)

Aochang Liu via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 06:49:34 PDT 2026


HelloWorldU wrote:

> Removing the fold keeps this fix minimal, at the cost of `cmp+seta+add/sub` instead of `cmp+adc/sbb` for these patterns; meanwhile, I'll prepare a follow-up PR that recovers the adc/sbb form via a swapped `CMP Y, X` (the atomic load still folds as `cmp (p), a`).
> 
> CC @RKSimon @phoebewang

#228710

https://github.com/llvm/llvm-project/pull/228693


More information about the llvm-commits mailing list