llvm-project/llvm/unittests/Transforms
Vedant Kumar d129569e34 [CodeExtractor] Split PHI nodes with incoming values from outlined region (PR39433)
If a PHI node out of extracted region has multiple incoming values from it,
split this PHI on two parts. First PHI has incomings only from region and
extracts with it (they are placed to the separate basic block that added to the
list of outlined), and incoming values in original PHI are replaced by first
PHI. Similar solution is already used in CodeExtractor for PHIs in entry block
(severSplitPHINodes method). It covers PR39433 bug.

Patch by Sergei Kachkov!

Differential Revision: https://reviews.llvm.org/D55018

llvm-svn: 348205
2018-12-03 22:40:21 +00:00
..
IPO IR: New representation for CFI and virtual call optimization pass metadata. 2016-06-24 21:21:32 +00:00
Scalar [New PM] Introducing PassInstrumentation framework 2018-09-20 17:08:45 +00:00
Utils [CodeExtractor] Split PHI nodes with incoming values from outlined region (PR39433) 2018-12-03 22:40:21 +00:00
Vectorize [VPlan, SLP] Add simple SLP analysis on top of VPlan. 2018-11-14 13:11:49 +00:00
CMakeLists.txt [VPlanRecipeBase] Add insertBefore helper. 2018-06-18 11:34:17 +00:00