diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-03-27 08:41:46 +0000 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-03-27 08:41:46 +0000 |
| commit | 38342a5185a1604e3ab7eb407ac910a0932cc91c (patch) | |
| tree | 9600fcb05be721cc06233737d69cca02fbf57be9 /llvm/lib/CodeGen/XRayInstrumentation.cpp | |
| parent | 95db95729c66f831647ac171248893e4e5cd3d11 (diff) | |
| download | bcm5719-llvm-38342a5185a1604e3ab7eb407ac910a0932cc91c.tar.gz bcm5719-llvm-38342a5185a1604e3ab7eb407ac910a0932cc91c.zip | |
[DAGCombiner] Don't allow addcarry if the carry producer is illegal.
getAsCarry() checks that the input argument is a carry-producing node before
allowing a transformation to addcarry. This patch adds a check to make sure
that the carry-producing node is legal. If it is not, it may not remain in a
form that is manageable by the target backend. The test case caused a
compilation failure during instruction selection for this reason on SystemZ.
Patch by Ulrich Weigand.
Review: Sanjay Patel
https://reviews.llvm.org/D59822
llvm-svn: 357052
Diffstat (limited to 'llvm/lib/CodeGen/XRayInstrumentation.cpp')
0 files changed, 0 insertions, 0 deletions

