Skip to content

Commit 928fd25

Browse files
committed
[Xtensa] Correction of the hardware loop instrinsics detection.
1 parent 05c4731 commit 928fd25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/Xtensa/XtensaISelLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ XtensaTargetLowering::XtensaTargetLowering(const TargetMachine &tm,
280280

281281
setTargetDAGCombine(ISD::FADD);
282282
setTargetDAGCombine(ISD::FSUB);
283+
}
284+
285+
if (Subtarget.hasSingleFloat() || Subtarget.hasLoop()) {
283286
setTargetDAGCombine(ISD::BRCOND);
284287
}
285288

0 commit comments

Comments
 (0)