This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Remove scalable vector restriction in InstCombineCompares
ClosedPublic

Authored by junparser on Dec 14 2020, 7:49 PM.

Details

Summary

As is the title. Similar to D93083.
BTW, the absence of test cases for foldICmpAndConstant and foldICmpShlConstant is due to the lack of representation of scale vector constants.

TestPlan: check-llvm

Diff Detail

Event Timeline

junparser created this revision.Dec 14 2020, 7:49 PM
junparser requested review of this revision.Dec 14 2020, 7:49 PM
junparser edited the summary of this revision. (Show Details)Dec 14 2020, 7:55 PM
RKSimon added inline comments.Dec 15 2020, 2:08 AM
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
3411–3412

auto *

junparser updated this revision to Diff 311851.Dec 15 2020, 2:54 AM
junparser marked an inline comment as done.

address the comment.

RKSimon accepted this revision.Dec 15 2020, 3:33 AM

LGTM

This revision is now accepted and ready to land.Dec 15 2020, 3:33 AM

@RKSimon Thank for review the patch. Would please take a look at the similar D93289 and D93083. Thanks a lot.