mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[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
This commit is contained in:
parent
ee83cda2e4
commit
def70b77f9
@ -317,7 +317,7 @@ MachineInstr *SSACCmpConv::findConvertibleCompare(MachineBasicBlock *MBB) {
|
||||
|
||||
// Now find the instruction controlling the terminator.
|
||||
for (MachineBasicBlock::iterator B = MBB->begin(); I != B;) {
|
||||
--I;
|
||||
I = prev_nodbg(I, MBB->begin());
|
||||
assert(!I->isTerminator() && "Spurious terminator");
|
||||
switch (I->getOpcode()) {
|
||||
// cmp is an alias for subs with a dead destination register.
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc < %s -mcpu=cyclone -verify-machineinstrs -aarch64-enable-ccmp -aarch64-stress-ccmp | FileCheck %s
|
||||
; RUN: llc < %s -debugify-and-strip-all-safe -mcpu=cyclone -verify-machineinstrs -aarch64-enable-ccmp -aarch64-stress-ccmp | FileCheck %s
|
||||
target triple = "arm64-apple-ios"
|
||||
|
||||
; CHECK: single_same
|
||||
|
Loading…
Reference in New Issue
Block a user