This is an archive of the discontinued LLVM Phabricator instance.

Don't check for inalloca in IPConstantPropagation
ClosedPublic

Authored by aeubanks on May 4 2020, 12:04 PM.

Details

Summary

This was added in https://reviews.llvm.org/D2449, but I'm not sure it's
necessary since an inalloca value is never a Constant (should be an
AllocaInst).

Diff Detail

Event Timeline

aeubanks created this revision.May 4 2020, 12:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 12:04 PM
aeubanks updated this revision to Diff 261893.May 4 2020, 12:05 PM

Wrong version...

hans accepted this revision.May 5 2020, 3:05 AM

lgtm

Maybe in the first line of the commit message, make it even clearer that you're removing the check because it's unnecessary. For example, "Remove unnecessary check for inalloca in IPConstantPropagation"

This revision is now accepted and ready to land.May 5 2020, 3:05 AM

lgtm

Maybe in the first line of the commit message, make it even clearer that you're removing the check because it's unnecessary. For example, "Remove unnecessary check for inalloca in IPConstantPropagation"

Done.

This revision was automatically updated to reflect the committed changes.