This is an archive of the discontinued LLVM Phabricator instance.

WIP: [mem2reg] Refactor load of uninitialized memory to poison semantics
Needs ReviewPublic

Authored by jmciver on Aug 19 2023, 3:41 PM.

Details

Summary

Part of a sequence of exploratory patches using poison semantics for
uninitialized memory.

This commit adds freeze_bits metadata support to mem2reg.

Regression test changes will be added in a future WIP patch.

Diff Detail

Event Timeline

jmciver created this revision.Aug 19 2023, 3:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2023, 3:41 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
jmciver retitled this revision from [mem2reg] Refactor load of uninitialized memory to poison semantics to WIP: [mem2reg] Refactor load of uninitialized memory to poison semantics.
jmciver updated this revision to Diff 551801.Aug 19 2023, 8:08 PM

Remove extra call to replaceAllUsesWith.

jmciver added a subscriber: nlopes.Aug 19 2023, 8:10 PM
jmciver edited the summary of this revision. (Show Details)Aug 19 2023, 8:26 PM
jmciver edited the summary of this revision. (Show Details)
jmciver published this revision for review.Aug 21 2023, 10:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 10:06 AM
jmciver updated this revision to Diff 553315.Aug 24 2023, 5:36 PM

Add conditional check to prevent the freezing of a load with freeze_bits metadata