This is an archive of the discontinued LLVM Phabricator instance.

[GISel]: Don't create G_MUL with 1 during translation of GetElementPtr
ClosedPublic

Authored by aditya_nandakumar on Jan 4 2018, 12:44 PM.

Details

Summary

When element size is 1, it's just wasteful to create MUL with 1.

Diff Detail

Repository
rL LLVM

Event Timeline

qcolombet accepted this revision.Jan 4 2018, 4:42 PM
This revision is now accepted and ready to land.Jan 4 2018, 4:42 PM