This is an archive of the discontinued LLVM Phabricator instance.

[DeadArgElim] Use poison instead of undef as placeholder for dead arguments
ClosedPublic

Authored by nlopes on May 19 2022, 8:46 AM.

Details

Summary

DeadArgElim uses undef values as placeholder for dead arguments. Let's switch that to poison as it doesn't matter which value we use and we get one step closer of getting rid of undef.

Diff Detail

Event Timeline

nlopes created this revision.May 19 2022, 8:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 8:46 AM
nlopes requested review of this revision.May 19 2022, 8:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 8:46 AM
aeubanks accepted this revision.May 19 2022, 9:05 AM
This revision is now accepted and ready to land.May 19 2022, 9:05 AM
fhahn accepted this revision.May 19 2022, 9:08 AM

LGTM, thanks!

llvm/test/Transforms/DeadArgElim/NoundefAttrs.ll
2–3

undef -> poison?

This revision was landed with ongoing or failed builds.May 19 2022, 10:03 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 10:03 AM