HomePhabricator

[LoopUnswitch] Properly update MSSA if header has non-clobbering stores.

Authored by fhahn on Jan 30 2021, 5:30 AM.

Description

[LoopUnswitch] Properly update MSSA if header has non-clobbering stores.

This patch fixes updating MemorySSA if the header contains memory
defs that do not clobber a duplicated instruction. We need to find the
first defining access outside the loop body and use that as defining
access of the duplicated instruction.

This fixes a crash caused by bee486851c1a.

Details

Committed
fhahnJan 30 2021, 5:51 AM
Parents
rG79125085f165: [ASTMatchers] Fix traversal below range-for elements
Branches
Unknown
Tags
Unknown