This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Fix bug in pointer replacement
ClosedPublic

Authored by jprice on Feb 24 2017, 11:28 AM.

Details

Summary

This optimisation was crashing when there was a chain of more than one bitcast instruction to replace, as a result of the changes in D27283.

Diff Detail

Repository
rL LLVM

Event Timeline

jprice created this revision.Feb 24 2017, 11:28 AM
yaxunl accepted this revision.Feb 24 2017, 11:41 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Feb 24 2017, 11:41 AM

Thanks for the speedy review!

I don't have commit access, so could someone please commit this on my behalf?

I will help you commit this patch. Thanks for the quick fix.

This revision was automatically updated to reflect the committed changes.