This is an archive of the discontinued LLVM Phabricator instance.

Add baseline tests for icmp bool with not on LHS
ClosedPublic

Authored by hasyimibhar on Dec 6 2021, 5:48 PM.

Details

Summary

Adds tests for both -instsimplify and -instcombine. The difference between the CHECK result of these 2 tests
highlights missed folds in instsimplify (e.g. (icmp eq (xor X, true), false) -> X) that are already being handled by instcombine.

The tests are based on llvm/test/Transforms/InstSimplify/icmp-bool-constant.ll

Diff Detail

Event Timeline

hasyimibhar requested review of this revision.Dec 6 2021, 5:48 PM
hasyimibhar created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2021, 5:48 PM
hasyimibhar edited the summary of this revision. (Show Details)Dec 6 2021, 5:54 PM
hasyimibhar edited the summary of this revision. (Show Details)
spatel accepted this revision.Dec 7 2021, 6:02 AM

LGTM - if I should commit on your behalf, please let me know how to specify your author credentials:
https://llvm.org/docs/DeveloperPolicy.html#commit-messages

This revision is now accepted and ready to land.Dec 7 2021, 6:02 AM

LGTM - if I should commit on your behalf, please let me know how to specify your author credentials:
https://llvm.org/docs/DeveloperPolicy.html#commit-messages

It should be Hasyimi Bahrudin <hasyimi@gatech.edu>.