This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Add tests for ctpop(X) where X is a power of 2; NFC
ClosedPublic

Authored by goldstein.w.n on Jan 17 2023, 10:46 PM.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Jan 17 2023, 10:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 10:46 PM
goldstein.w.n requested review of this revision.Jan 17 2023, 10:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 10:46 PM

Add/change one of these tests to a vector type, so we have some coverage for that possibility.
And as noted in the other review, this set of tests (and transform) can go into the InstSimplify directory because we are not creating any new instructions.

Add vec tests

Add/change one of these tests to a vector type, so we have some coverage for that possibility.

Done.

And as noted in the other review, this set of tests (and transform) can go into the InstSimplify directory because we are not creating any new instructions.

Any idea which file. Grepping around I didn't see any obvious places this belongs.

Move to instsimplify

goldstein.w.n retitled this revision from [InstCombine] Add tests for ctpop(X) where X is a power of 2; NFC to [InstSimplify] Add tests for ctpop(X) where X is a power of 2; NFC.Jan 18 2023, 10:38 AM

Add/change one of these tests to a vector type, so we have some coverage for that possibility.
And as noted in the other review, this set of tests (and transform) can go into the InstSimplify directory because we are not creating any new instructions.

Move to instsimplify.

spatel accepted this revision.Jan 18 2023, 10:40 AM

Add/change one of these tests to a vector type, so we have some coverage for that possibility.

Done.

And as noted in the other review, this set of tests (and transform) can go into the InstSimplify directory because we are not creating any new instructions.

Any idea which file. Grepping around I didn't see any obvious places this belongs.

llvm/test/Transforms/InstSimplify/call.ll checks a grab-bag of assorted intrinsics, but there's enough here to warrant a new file.
LGTM

This revision is now accepted and ready to land.Jan 18 2023, 10:40 AM
This revision was landed with ongoing or failed builds.Jan 19 2023, 11:29 AM
This revision was automatically updated to reflect the committed changes.