This is an archive of the discontinued LLVM Phabricator instance.

[AST] Fix a bug in aliasesUnknownInst. Make sure we are comparing the unknown instructions in the alias set and the instruction interested in.
ClosedPublic

Authored by trentxintong on Jun 24 2017, 11:34 AM.

Details

Summary

Make sure we are comparing the unknown instructions in the alias set and the instruction interested in.
I believe this is clearly a bug (missed opportunity). I can also add some test cases if desired.

Event Timeline

trentxintong created this revision.Jun 24 2017, 11:34 AM
davide requested changes to this revision.Jun 24 2017, 12:27 PM

Yes, please add some tests.

This revision now requires changes to proceed.Jun 24 2017, 12:27 PM
trentxintong edited edge metadata.

Add test.

Add comments

trentxintong retitled this revision from [AliasSet] Fix a bug in aliasesUnknownInst. Make sure we are comparing the unknown instructions in the alias set and the instruction interested in. to [AST] Fix a bug in aliasesUnknownInst. Make sure we are comparing the unknown instructions in the alias set and the instruction interested in..Jun 24 2017, 3:59 PM

Add 1 more assert in the test case.

This revision was automatically updated to reflect the committed changes.