This is an archive of the discontinued LLVM Phabricator instance.

[CGP] Fix the handling an assert in complex addressing mode
ClosedPublic

Authored by skatkov on Dec 14 2017, 11:32 AM.

Details

Summary

When we put the value in select placeholder we must pass
the value through simplification tracker due to the value might
be already simplified and erased.

This is a fix for PR35658.

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Dec 14 2017, 11:32 AM

I don't know this code at all so I can't say if the fix makes sense or not, but I've tested it on my out-of-tree target
and it indeed solves the problem I reported in PR35658 and I haven't seen anything odd so it's probably good.

Thanks for fixing!

Thank you for an update!

Let's wait for a review from John, he knows this code very well...

john.brawn accepted this revision.Dec 15 2017, 10:09 AM

Given that it looks like we're already doing the same thing for phi nodes this looks like a sensible fix, so LGTM.

This revision is now accepted and ready to land.Dec 15 2017, 10:09 AM
This revision was automatically updated to reflect the committed changes.