Skip to content
Commit c4c679c2 authored by Michael Kruse's avatar Michael Kruse
Browse files

[CodeGen] Fix order of PHINode and MA Write generation.



At the end of a region statement, the PHINode must be generated
while the current IRBuilder's block is the region's exit node. For
obvious reasons: The PHINode references the region's exiting block.
A partial write would insert new control flow, i.e. insert new basic
blocks between the exiting blocks and the current block.

We fix this by generating the PHI nodes (region exit values) before
generating any MemoryAccess's stores.

This should fix the AOSP buildbot.

Reported-by: default avatarEli Friedman <efriedma@quicinc.com>
llvm-svn: 361204
parent 28e351af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment