Skip to content
Commit c59bc230 authored by ManuelJBrito's avatar ManuelJBrito
Browse files

[NewGVN][PHIOFOPS] Relax conditions when checking safety of memory accesses

Currently, we consider any instruction that might read from memory to be unsafe for phi-of-ops.
This patch refines that by walking the clobbering memDefs until we either hit a block that
strictly dominates the phi block (safe) or we hit a clobbering memPhi (unsafe).

Differential Revision: https://reviews.llvm.org/D156055
parent 97cddb78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment