You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the final stage of InstrRef, i.e. the TransferTracker (which
combines the values locations with the variable values), so that it treats a
DEBUG_VALUE of an EntryValue just like a DEBUG_VALUE of a constant: a location
that is never clobbered and can be propagated to subsequent BBs as long as no
other DEBUG_VALUE intrinsics updated the variable.
We add two tests here:
1. `entry_value_clobbered_stack_copy` that saves a register on the stack, uses
this register as an entry value DBG_VALUE location, and then clobbers it. Prior
to this patch, this test would crash because we would try to describe a new
location for the variable in terms of what was saved on the stack, and use an
invalid expression to do so. This is not needed as an EntryValue can never be
clobbered.
2. `entry_value_gets_propagated`, that tests that an EntryValue DBG_VALUE is
propagated in a diamond-shaped CFG.
This patch is trying to reland #77938
but also fixes the bug with InstrRef based LiveDebugValues, where entry
values were not being propagated in a diamond-shaped CFG.
0 commit comments