This is an archive of the discontinued LLVM Phabricator instance.

Unreachable code RAUW from UndefValue to PoisonValue [NFC]
ClosedPublic

Authored by ManuelJBrito on Sep 10 2022, 5:05 AM.

Details

Summary

Replacing the following instances of UndefValue with PoisonValue, where the UndefValue is used as an arbitrary value.

llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

  • @cleanup if the result is not used then the inserted instructions are removed, RAUW arbitrary value

llvm/lib/Transforms/Utils/BasicBlockUtils.cpp

  • @FoldSingleEntryPHINodes when we have a self referential single entry phi node, RAUW arbitrary value

llvm/lib/Transforms/Utils/CallGraphUpdater.cpp

  • @finalize Remove all references to removed functions RAUW arbitrary value

llvm/tools/bugpoint/CrashDebugger.cpp

  • @TestInts the program is cloned and instructions are removed to narrow down source of crash, RAUW arbitrary value

llvm/lib/CodeGen/WinEHPrepare.cpp

  • @demotePHIsOnFunclets RAUW arbitrary value for lingering uses of removed PHI nodes

Diff Detail

Event Timeline

ManuelJBrito created this revision.Sep 10 2022, 5:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2022, 5:05 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
ManuelJBrito requested review of this revision.Sep 10 2022, 5:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2022, 5:05 AM
nlopes accepted this revision.Sep 10 2022, 6:21 AM
This revision is now accepted and ready to land.Sep 10 2022, 6:21 AM