llvm-project
[llvm] [InstCombine] fold "icmp eq (X + (V - 1)) & -V, X" to "icmp eq (and X, V - 1), 0"
#152851
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
14
Changes
View On
GitHub
[llvm] [InstCombine] fold "icmp eq (X + (V - 1)) & -V, X" to "icmp eq (and X, V - 1), 0"
#152851
pskrgag
merged 14 commits into
llvm:main
from
pskrgag:foldIcmp
fold "icmp eq (num + (val - 1)) & -val, num" to "icmp eq 0, (and num,…
d8b5d15f
pskrgag
requested a review
from
nikic
217 days ago
pskrgag
removed review request
from
nikic
217 days ago
pskrgag
requested a review
from
dtcxzyw
217 days ago
llvmbot
added
llvm:instcombine
llvmbot
added
llvm:transforms
coding style...
93fd0c6d
dtcxzyw
commented on 2025-08-09
dtcxzyw
requested a review
from
nikic
216 days ago
address review comments
914dd1f9
coding style....
fa89f888
dtcxzyw
commented on 2025-08-10
review
25aec6bf
dtcxzyw
commented on 2025-08-10
learning llvm...
b66f1280
use m_Defereded instead of m_Specific
db1316ba
dtcxzyw
commented on 2025-08-11
don't open code bitwise not
c72f7bbf
drop non-constant path as it happens to be non-profitable
0e9e8e71
nikic
commented on 2025-08-11
review
327aaed2
dtcxzyw
approved these changes on 2025-08-13
dtcxzyw
changed the title
[llvm] [InstCombine] fold "icmp eq (X + (V - 1)) & -V, X" to "icmp eq 0, (and X, V - 1)"
[llvm] [InstCombine] fold "icmp eq (X + (V - 1)) & -V, X" to "icmp eq (and X, V - 1), 0"
212 days ago
style fixes
ee4c1a20
Merge branch 'main' into foldIcmp
98e655cf
swap operands in comment
b58e3881
nikic
approved these changes on 2025-08-13
comment fixes
52ef6a67
pskrgag
merged
30144226
into main
212 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
nikic
dtcxzyw
Assignees
No one assigned
Labels
llvm:instcombine
llvm:transforms
Milestone
No milestone
Login to write a write a comment.
Login via GitHub