This is an archive of the discontinued LLVM Phabricator instance.

[NFC] [LoopLoadElim] Extending type-mismatch testing
ClosedPublic

Authored by jolanta.jensen on Aug 19 2022, 8:32 AM.

Details

Summary

Added IR for int-pointer type mismatch and int-vector
type mismatch. Regenerated CHECK lines using
the update_test_checks.py script.

Diff Detail

Event Timeline

jolanta.jensen created this revision.Aug 19 2022, 8:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2022, 8:32 AM
jolanta.jensen requested review of this revision.Aug 19 2022, 8:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2022, 8:32 AM

Could you change the commit message? or at least add [LoopLoadElim] ? it does not make clear that these are LoopLoadElimination tests.

Added tests for int-pointer mismatch and int-vector mismatch.

fhahn added a subscriber: fhahn.Aug 22 2022, 3:10 AM
fhahn added inline comments.
llvm/test/Transforms/LoopLoadElim/type-mismatch.ll
134

Typed pointers are deprecated, is there any reason to add the new test here instead of `llvm/test/Transforms/LoopLoadElim/type-mismatch-opaque-ptr.ll
`? I'd expect the typed pointer version of the tests to be removed relatively soon.

Could you change the commit message? or at least add [LoopLoadElim] ? it does not make clear that these are LoopLoadElimination tests.

Weird, I changed the commit message to:

[NFC][LoopLoadElim] Extending type-mismatch testing

Added IR for int-pointer type mismatch and int-vector
type mismatch. Regenerated CHECK lines using
the update_test_checks.py script.

but it hasn't been updated.

fhahn added a comment.Aug 22 2022, 3:12 AM

Could you change the commit message? or at least add [LoopLoadElim] ? it does not make clear that these are LoopLoadElimination tests.

Weird, I changed the commit message to:

[NFC][LoopLoadElim] Extending type-mismatch testing

Unfortunately arc diff won't update the title/description. You'll need to change that manually in the web interface

jolanta.jensen added inline comments.Aug 22 2022, 3:16 AM
llvm/test/Transforms/LoopLoadElim/type-mismatch.ll
134

It's purely to make it easier for reviewers of https://reviews.llvm.org/D130233 to see the impact of the change.

fhahn added inline comments.Aug 22 2022, 3:19 AM
llvm/test/Transforms/LoopLoadElim/type-mismatch.ll
134

right, what I meant is that the test probably should just be converted/moved to the opaque pointer version of the tests

jolanta.jensen retitled this revision from [NFC] Regenerating CHECK lines for type-mismatch tests to [NFC] [LoopLoadElim] Extending type-mismatch testing.Aug 22 2022, 3:24 AM
jolanta.jensen edited the summary of this revision. (Show Details)
jolanta.jensen edited the summary of this revision. (Show Details)

Added opaque pointer versions of previously added tests.

jolanta.jensen added inline comments.Aug 22 2022, 8:54 AM
llvm/test/Transforms/LoopLoadElim/type-mismatch.ll
134

Added opaque pointer versions of f3 and f4.
I hope it's ok to keep them here as well so tests for opaque pointers ant typed pointers match.

fhahn accepted this revision.Aug 29 2022, 6:20 AM

LGTM, thanks!

llvm/test/Transforms/LoopLoadElim/type-mismatch.ll
134

Thanks!

This revision is now accepted and ready to land.Aug 29 2022, 6:20 AM