summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-11-08 15:29:48 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-11-08 15:29:48 +0000
commit1993894c0300c2f900e53d38196b948f36d566ff (patch)
tree460d06c80f954337fd91e2a54e2394bc2e358b35 /clang/lib/CodeGen
parent4c4556186e1b0e0380c0af934982e4f21eb8040c (diff)
downloadbcm5719-llvm-1993894c0300c2f900e53d38196b948f36d566ff.tar.gz
bcm5719-llvm-1993894c0300c2f900e53d38196b948f36d566ff.zip
[SystemZ] Bugfix in shouldCoalesce()
It was discovered in randomized testing that the SystemZ implementation of shouldCoalesce() could be caused to crash when subreg liveness was enabled. This was because an undef use of the virtual register was copied outside current MBB at the point of shouldCoalesce() being called. For more details, see https://bugs.llvm.org/show_bug.cgi?id=39276. This patch changes the check for MBB locality from livein/liveout checks to do checks for all instructions of both intervals being inside MBB. This avoids the cases with dead defs / undef uses outside MBB, which are not affecting liveness in/out of MBB. The original test case included as a reduced .mir test case. Review: Ulrich Weigand https://reviews.llvm.org/D54197 llvm-svn: 346406
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud