This is an archive of the discontinued LLVM Phabricator instance.

[GVN] Fix a crash on encountering non-integral pointers
ClosedPublic

Authored by loladiro on Apr 27 2017, 4:10 PM.

Details

Summary

This fixes the immediate crash caused by introducing an incorrect inttoptr
before attempting the conversion. There may still be a legality
check missing somewhere earlier for non-integral pointers, but this change
seems necessary in any case.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.Apr 27 2017, 4:10 PM
sanjoy edited edge metadata.Apr 28 2017, 5:13 PM

The behavioral change looks fine to me, but I'll have to defer to @dberlin on whether this is the right place to do make the change.

dberlin edited edge metadata.Apr 28 2017, 5:40 PM

This looks generally fine. I expect you are going to have some other issues (load widening, etc) to solve around these areas.

dberlin accepted this revision.Apr 28 2017, 10:56 PM
This revision is now accepted and ready to land.Apr 28 2017, 10:56 PM
This revision was automatically updated to reflect the committed changes.