summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2018-12-15 00:32:38 +0000
committerFlorian Hahn <flo@fhahn.com>2018-12-15 00:32:38 +0000
commitc214bc2b8da91f38c4d2c060831229a17b6af816 (patch)
treef1a4f1a0c43590413a0df2f17a8ddd1049da9abc /llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
parentae15e7232a4c12a2691c94c6585692ff6d1421e9 (diff)
downloadbcm5719-llvm-c214bc2b8da91f38c4d2c060831229a17b6af816.tar.gz
bcm5719-llvm-c214bc2b8da91f38c4d2c060831229a17b6af816.zip
[NewGVN] Update use counts for SSA copies when replacing them by their operands.
The current code relies on LeaderUseCount to determine if we can remove an SSA copy, but in that the LeaderUseCount does not refer to the SSA copy. If a SSA copy is a dominating leader, we use the operand as dominating leader instead. This means we removed a user of a ssa copy and we should decrement its use count, so we can remove the ssa copy once it becomes dead. Fixes PR38804. Reviewers: efriedma, davide Reviewed By: davide Differential Revision: https://reviews.llvm.org/D51595 llvm-svn: 349217
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud