aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2017-10-12 06:21:28 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2017-10-12 06:21:28 +0000
commita079ef68e373fffd6e6d14c11c26d9ba85f16e98 (patch)
tree5bbb10621587b1c72aea33fc40cbd92aafcd3417 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parenta84a47741a09daddb6a4f609d8b10be368f84653 (diff)
downloadllvm-a079ef68e373fffd6e6d14c11c26d9ba85f16e98.zip
llvm-a079ef68e373fffd6e6d14c11c26d9ba85f16e98.tar.gz
llvm-a079ef68e373fffd6e6d14c11c26d9ba85f16e98.tar.bz2
[RegisterCoalescer] Don't set read-undef in pruneValues, only clear
Summary: The comments in the code said // Remove <def,read-undef> flags. This def is now a partial redef. but the code didn't just remove read-undef, it could introduce new ones which could cause errors. E.g. if we have something like %vreg1<def> = IMPLICIT_DEF %vreg2:subreg1<def, read-undef> = op %vreg3, %vreg4 %vreg2:subreg2<def> = op %vreg6, %vreg7 and we merge %vreg1 and %vreg2 then we should not set undef on the second subreg def, which the old code did. Now we solve this by actually do what the code comment says. We remove read-undef flags rather than remove or introduce them. Reviewers: qcolombet, MatzeB Reviewed By: MatzeB Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D38616 llvm-svn: 315564
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions