[PATCH] D103242: [WIP] Don't delete all llvm.assume instructions in codegenprepare
Markus Lavin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 27 05:08:30 PDT 2021
markus created this revision.
Herald added a subscriber: hiraditya.
markus requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Only delete those `@llvm.assume`s 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.assume`s in IR during codegen as they help guide AA during instruction scheduling.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103242
Files:
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/Transforms/CodeGenPrepare/X86/recursively-delete-dead-instructions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103242.348225.patch
Type: text/x-patch
Size: 4711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/ab88eec0/attachment.bin>
More information about the llvm-commits
mailing list