llvm-project
[llvm] [InstCombine] fold "icmp eq (X + (V - 1)) & -V, X" to "icmp eq (and X, V - 1), 0"
#152851
Merged

[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
pskrgag
pskrgag fold "icmp eq (num + (val - 1)) & -val, num" to "icmp eq 0, (and num,…
d8b5d15f
pskrgag pskrgag requested a review from nikic nikic 217 days ago
pskrgag pskrgag removed review request from nikic nikic 217 days ago
pskrgag pskrgag requested a review from dtcxzyw dtcxzyw 217 days ago
llvmbot llvmbot added llvm:instcombine
llvmbot llvmbot added llvm:transforms
llvmbot
pskrgag coding style...
93fd0c6d
dtcxzyw
dtcxzyw commented on 2025-08-09
dtcxzyw dtcxzyw requested a review from nikic nikic 216 days ago
pskrgag address review comments
914dd1f9
pskrgag
github-actions
pskrgag coding style....
fa89f888
dtcxzyw
dtcxzyw commented on 2025-08-10
pskrgag review
25aec6bf
dtcxzyw
dtcxzyw commented on 2025-08-10
pskrgag learning llvm...
b66f1280
pskrgag use m_Defereded instead of m_Specific
db1316ba
dtcxzyw
dtcxzyw commented on 2025-08-11
pskrgag don't open code bitwise not
c72f7bbf
pskrgag
pskrgag drop non-constant path as it happens to be non-profitable
0e9e8e71
nikic
nikic commented on 2025-08-11
pskrgag review
327aaed2
dtcxzyw
dtcxzyw approved these changes on 2025-08-13
dtcxzyw 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
pskrgag style fixes
ee4c1a20
pskrgag Merge branch 'main' into foldIcmp
98e655cf
pskrgag swap operands in comment
b58e3881
nikic
nikic approved these changes on 2025-08-13
pskrgag
pskrgag comment fixes
52ef6a67
pskrgag
nikic
pskrgag pskrgag merged 30144226 into main 212 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone