This is an archive of the discontinued LLVM Phabricator instance.

[WIP] Don't delete all llvm.assume instructions in codegenprepare
AbandonedPublic

Authored by markus on May 27 2021, 5:08 AM.

Details

Reviewers
None
Summary

Only delete those @llvm.assumes that including their predecessors (with no other successors) are the sole occupants of a block.

The rationale is that whenever possible we need to preserve the @llvm.assumes in IR during codegen as they help guide AA during instruction scheduling.

Diff Detail

Event Timeline

markus created this revision.May 27 2021, 5:08 AM
markus requested review of this revision.May 27 2021, 5:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2021, 5:08 AM
markus abandoned this revision.May 28 2021, 6:39 AM

Abandoned in favor of D103316.

llvm/lib/CodeGen/CodeGenPrepare.cpp