[all-commits] [llvm/llvm-project] 53096b: [X86][APX] Optimize usub.sat(X, 1) to cmp+adc with ...
AntonyCJ30 via All-commits
all-commits at lists.llvm.org
Sat Jul 18 08:36:18 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 53096b7a2d268ab92617436915bc6f9f3cf8d82e
https://github.com/llvm/llvm-project/commit/53096b7a2d268ab92617436915bc6f9f3cf8d82e
Author: AntonyCJ30 <cj6186609 at gmail.com>
Date: 2026-07-18 (Sat, 18 Jul 2026)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/apx/sub.ll
Log Message:
-----------
[X86][APX] Optimize usub.sat(X,1) to cmp+adc with NDD (#208475)
When NDD is available, usub.sat(X, 1) is lowered from xor+sub+cmov (3
insns) to cmp+adc (2 insns).
All X86 tests pass.
Fixes #207888
Co-authored-by: AntonyCJ30 <cj6186609 at gmail@gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list