[AArch64ConditionalCompares] Ignore debug insts in findConvertibleCompare [8/14]
authorVedant Kumar <vsk@apple.com>
Tue, 14 Apr 2020 21:27:48 +0000 (14:27 -0700)
committerVedant Kumar <vsk@apple.com>
Thu, 23 Apr 2020 00:03:40 +0000 (17:03 -0700)
commitb157974ab3527e35e509d5b8f8f0f0e4f98c4c65
tree5ec041bbfdda4764113ec208f232c9d085c2d72f
parentf0b52beef3e3fa5e99aa9fae962f9df0cdaf5f74
[AArch64ConditionalCompares] Ignore debug insts in findConvertibleCompare [8/14]

Summary:
Fix an issue where the presence of debug info could disable the ccmp
optimization due to findConvertibleCompare failing too early (the error
is "Can't create ccmp with multiple uses", where the "use" is a
DBG_VALUE inst).

Depends on D78151.

Reviewers: t.p.northover, paquette, aemerson

Subscribers: kristof.beyls, hiraditya, danielkiss, aprantl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78156
llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
llvm/test/CodeGen/AArch64/arm64-ccmp.ll