llvm-mirror/test/Transforms/HotColdSplit
Vedant Kumar 7bbbffcf9e [CodeExtractor] Remove stale llvm.assume calls from extracted region
During extraction, stale llvm.assume handles may be retained in the
original function. The setup is:

1) CodeExtractor unregisters assumptions in the blocks that are to be
   extracted.

2) Extraction happens. There are now two functions: f1 and f1.extracted.

3) Leftover assumptions in f1 (/not/ removed as they were not in the set of
   blocks to be extracted) now have affected-value llvm.assume handles in
   f1.extracted.

When assumptions for a value used in f1 are looked up, ValueTracking can assert
as some of the handles are in the wrong function. To fix this, simply erase the
llvm.assume calls in the extracted function.

Alternatives include flushing the assumption cache in the original function, or
walking all values used in the original function to prune stale affected-value
handles. Both seem more expensive.

Testing: check-llvm, LNT run with -mllvm -hot-cold-split enabled

rdar://58460728
2020-01-28 17:18:01 -08:00
..
X86
addr-taken.ll
apply-noreturn-bonus.ll
apply-penalty-for-inputs.ll
apply-penalty-for-outputs.ll
apply-successor-penalty.ll
assumption-cache-invalidation.ll [CodeExtractor] Remove stale llvm.assume calls from extracted region 2020-01-28 17:18:01 -08:00
coldentrycount.ll
delete-use-without-def-dbg-val.ll
duplicate-phi-preds-crash.ll
eh-pads.ll
eh-typeid-for.ll
forward-dfs-reaches-marked-block.ll
lifetime-markers-on-inputs-1.ll
lifetime-markers-on-inputs-2.ll
mark-the-whole-func-cold.ll
minsize.ll
multiple-exits.ll
noreturn.ll HotColdSplitting: Do not outline within noreturn functions 2019-12-19 14:06:24 -08:00
outline-cold-asm.ll
outline-disjoint-diamonds.ll
outline-if-then-else.ll
outline-multiple-entry-region.ll
outline-while-loop.ll
phi-with-distinct-outlined-values.ll
region-overlap.ll
resume.ll
retain-section.ll Fix failing testcase to check for the correct output 2019-12-02 16:19:35 -08:00
sink-multiple-bitcasts-of-allocas-pr42451.ll
split-cold-2.ll
split-out-dbg-label.ll [CodeExtractor] Transfer debug info to extracted function 2020-01-15 15:38:36 -08:00
split-out-dbg-val-of-arg.ll
split-phis-in-exit-blocks.ll
stale-assume-in-original-func.ll [CodeExtractor] Remove stale llvm.assume calls from extracted region 2020-01-28 17:18:01 -08:00
succ-block-with-self-edge.ll
swifterror.ll
transfer-debug-info.ll [CodeExtractor] Transfer debug info to extracted function 2020-01-15 15:38:36 -08:00
unwind.ll
update-split-loop-metadata.ll [CodeExtractor] Transfer debug info to extracted function 2020-01-15 15:38:36 -08:00