This is an archive of the discontinued LLVM Phabricator instance.

[Split GEP] handle trunc() in separate-const-offset-from-gep pass.
ClosedPublic

Authored by tra on May 10 2018, 3:47 PM.

Details

Summary

Let separate-const-offset-from-gep pass handle trunc() when it calculates
constant offset relative to base. The pass itself may insert trunc()
instructions when it canonicalises array indices to pointer-size integers
and needs to handle trunc() in order to evaluate the offset.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.May 10 2018, 3:47 PM
tra updated this revision to Diff 146247.May 10 2018, 3:50 PM

Fixed mangled comment.

jlebar accepted this revision.May 10 2018, 6:40 PM
This revision is now accepted and ready to land.May 10 2018, 6:40 PM
This revision was automatically updated to reflect the committed changes.