This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Add test exposing bug in DAG combine.
ClosedPublic

Authored by hgreving on May 11 2021, 7:47 AM.

Details

Summary

Adds a test in X86, exposing a bug in DAG combine eliminating stores that
are the same value but no the same address space.

Diff Detail

Event Timeline

hgreving created this revision.May 11 2021, 7:47 AM
hgreving requested review of this revision.May 11 2021, 7:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2021, 7:47 AM
RKSimon accepted this revision.May 11 2021, 7:51 AM

LGTM

This revision is now accepted and ready to land.May 11 2021, 7:51 AM

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

hgreving updated this revision to Diff 344432.May 11 2021, 9:20 AM

Removed :gs versions in the test.
Added indexed store tests.

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

Would you mind hinting me to the script? I barely work upstream, sorry for that.

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

Would you mind hinting me to the script? I barely work upstream, sorry for that.

No problem - it's in the repo at:
utils/update_llc_test_checks.py ( https://github.com/llvm/llvm-project/blob/main/llvm/utils/update_llc_test_checks.py )

To run it, do something like this:
$ {path to}/update_llc_test_checks.py --llc={path to local}/llc dagcombine-dead-store.ll

Then, you can just run that same command after applying D102096 and rebuilding llc. No need to manually touch the test file unless it looks wrong/excessive.

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

Would you mind hinting me to the script? I barely work upstream, sorry for that.

Found, will update shortly.

hgreving added a comment.EditedMay 11 2021, 9:52 AM

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

Would you mind hinting me to the script? I barely work upstream, sorry for that.

No problem - it's in the repo at:
utils/update_llc_test_checks.py ( https://github.com/llvm/llvm-project/blob/main/llvm/utils/update_llc_test_checks.py )

To run it, do something like this:
$ {path to}/update_llc_test_checks.py --llc={path to local}/llc dagcombine-dead-store.ll

Then, you can just run that same command after applying D102096 and rebuilding llc. No need to manually touch the test file unless it looks wrong/excessive.

I had just found it a minute before this comment. Thanks. We can use this script downstream actually. Thanks for pointing it out.

hgreving updated this revision to Diff 344458.May 11 2021, 10:19 AM

Used update_llc_test_checks.py for CHECKs.

Is there some reason to not use scripted, auto-generated CHECK lines on this file?

Would you mind hinting me to the script? I barely work upstream, sorry for that.

No problem - it's in the repo at:
utils/update_llc_test_checks.py ( https://github.com/llvm/llvm-project/blob/main/llvm/utils/update_llc_test_checks.py )

To run it, do something like this:
$ {path to}/update_llc_test_checks.py --llc={path to local}/llc dagcombine-dead-store.ll

Then, you can just run that same command after applying D102096 and rebuilding llc. No need to manually touch the test file unless it looks wrong/excessive.

I had just found it a minute before this comment. Thanks. We can use this script downstream actually. Thanks for pointing it out.

Done.

spatel accepted this revision.May 11 2021, 10:24 AM

LGTM

hgreving updated this revision to Diff 344464.May 11 2021, 10:30 AM

Fix test's comment gibberish.

hgreving updated this revision to Diff 344468.May 11 2021, 10:32 AM
This revision was automatically updated to reflect the committed changes.