This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Extend simplifications for `(icmp ({z|s}ext X), C)` where `C` is vector
ClosedPublic

Authored by goldstein.w.n on Mar 30 2023, 2:29 PM.

Details

Summary

Previous logic only applied for ConstantInt which misses all vector
cases. New code works for splat/non-splat vectors as well. No change
to the underlying simplifications.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Mar 30 2023, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 2:29 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
goldstein.w.n requested review of this revision.Mar 30 2023, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 2:29 PM
nikic accepted this revision.Apr 2 2023, 1:36 AM

LGTM

llvm/lib/Analysis/InstructionSimplify.cpp
3822–3823
This revision is now accepted and ready to land.Apr 2 2023, 1:36 AM
This revision was landed with ongoing or failed builds.Apr 3 2023, 9:05 AM
This revision was automatically updated to reflect the committed changes.