llvm-project/llvm/test/Transforms/CodeExtractor
Ehud Katz 64249f177e [CodeExtractor] Fix extraction of a value used only by intrinsics outside of region
We should only skip `lifetime` and `dbg` intrinsics when searching for users.
Other intrinsics are legit users that can't be ignored.

Without this fix, the testcase would result in an invalid IR. `memcpy`
will have a reference to the, now, external value (local to the
extracted loop function).

Fix PR42194

Differential Revision: https://reviews.llvm.org/D78749
2020-04-25 11:44:47 +03:00
..
X86
2004-03-13-LoopExtractorCrash.ll
2004-03-14-DominanceProblem.ll
2004-03-14-NoSwitchSupport.ll
2004-03-17-MissedLiveIns.ll
2004-03-17-UpdatePHIsOutsideRegion.ll
2004-03-18-InvokeHandling.ll
2004-08-12-BlockExtractPHI.ll
2004-11-12-InvokeExtract.ll
BlockAddressReference.ll
BlockAddressSelfReference.ll
ExtractedFnEntryCount.ll
LoopExtractor.ll
LoopExtractor_alloca.ll [CodeExtractor] Fix extraction of a value used only by intrinsics outside of region 2020-04-25 11:44:47 +03:00
LoopExtractor_crash.ll
LoopExtractor_infinite.ll
LoopExtractor_min_wrapper.ll
MultipleExitBranchProb.ll
PartialInlineAlloca.ll
PartialInlineAlloca2.ll
PartialInlineAlloca4.ll
PartialInlineAlloca5.ll
PartialInlineAnd.ll
PartialInlineAndOr.ll
PartialInlineAttributes.ll
PartialInlineCallRef.ll
PartialInlineDebug.ll
PartialInlineEntryPHICost.ll
PartialInlineEntryUpdate.ll
PartialInlineHighCost.ll
PartialInlineInvokeProducesOutVal.ll
PartialInlineLiveAcross.ll [llvm] Fix missing FileCheck directive colons 2020-04-06 09:59:08 -06:00
PartialInlineNoInline.ll
PartialInlineNoLiveOut.ll [llvm] Fix missing FileCheck directive colons 2020-04-06 09:59:08 -06:00
PartialInlineNotViable.ll
PartialInlineORECrash.ll
PartialInlineOptRemark.ll
PartialInlineOr.ll
PartialInlineOrAnd.ll
PartialInlinePGOMultiRegion.ll
PartialInlinePGORegion.ll
PartialInlineVarArg.ll
PartialInlineVarArgsDebug.ll
SingleCondition.ll
cost.ll
cost_meta.ll
extract-assume.ll
inline_eh.ll
inline_eh_1.ll
live_shrink.ll
live_shrink_gep.ll
live_shrink_hoist.ll
live_shrink_multiple.ll
live_shrink_unsafe.ll [CodeExtractor] Fix typo in check label to fix issue reported on D77354 2020-04-08 14:59:15 +01:00
unreachable-block.ll