[all-commits] [llvm/llvm-project] 480b2c: [InstCombine][AArch64] Combine ANDs with two const...
Matthew Devereau via All-commits
all-commits at lists.llvm.org
Fri Aug 7 03:13:38 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 480b2c9eb47f1c105432a99b1623abda97e88259
https://github.com/llvm/llvm-project/commit/480b2c9eb47f1c105432a99b1623abda97e88259
Author: Matthew Devereau <matthew.devereau at arm.com>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
A llvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-opts-and.ll
Log Message:
-----------
[InstCombine][AArch64] Combine ANDs with two constant CMPHS (#213995)
InstCombine
and(cmphs(pg, ConstA, A), cmphs(pg, A, ConstB))
->
cmphs(pg, ConstA - ConstB, sub(pg, A, ConstB))
Also emit zero when ConstB > ConstA
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