aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-04-10 23:41:59 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-04-16 00:56:08 -0500
commit0741dec27b049111094aec22f547651bb42a27ce (patch)
treea6bdf50c61ecf919bf39b172c711ae5b4c13f91d /llvm/lib/Support/GraphWriter.cpp
parentea7f17ee387062fcb74af2ba27c426a68c6bc8ad (diff)
downloadllvm-0741dec27b049111094aec22f547651bb42a27ce.zip
llvm-0741dec27b049111094aec22f547651bb42a27ce.tar.gz
llvm-0741dec27b049111094aec22f547651bb42a27ce.tar.bz2
[Attributor][FIX] Handle droppable uses when replacing values
Since we use the fact that some uses are droppable in the Attributor we need to handle them explicitly when we replace uses. As an example, an assumed dead value can have live droppable users. In those we cannot replace the value simply by an undef. Instead, we either drop the uses (via `dropDroppableUses`) or keep them as they are. In this patch we do both, depending on the situation. For values that are dead but not necessarily removed we keep droppable uses around because they contain information we might be able to use later. For values that are removed we drop droppable uses explicitly to avoid replacement with undef.
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
0 files changed, 0 insertions, 0 deletions