[PATCH] D57048: [SystemZ] Handle DBG_VALUE instructions in two places in backend

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 04:54:56 PST 2019


jonpa created this revision.
jonpa added a reviewer: uweigand.

Two backend optimizations failed to handle cases when compiled with -g, due to failing to consider DBG_VALUE instructions. This was in SystemZTargetLowering::emitSelect() and SystemZElimCompare::getRegReferences().

This patch makes sure that DBG_VALUEs are recognized so that they do not affect these optimizers.

Tests for branch-on-count, load-and-trap and consecutive selects.


https://reviews.llvm.org/D57048

Files:
  lib/Target/SystemZ/SystemZElimCompare.cpp
  lib/Target/SystemZ/SystemZISelLowering.cpp
  test/CodeGen/SystemZ/debuginstr-00.mir
  test/CodeGen/SystemZ/debuginstr-01.mir
  test/CodeGen/SystemZ/debuginstr-02.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57048.182888.patch
Type: text/x-patch
Size: 12294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/f95ae7f8/attachment.bin>


More information about the llvm-commits mailing list