From b56bf6b11292da6d2d7dffb09b3a89632cd4f6a3 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Fri, 17 Oct 2014 21:19:59 +0000 Subject: [PATCH] [PowerPC] Change assert to better form git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220092 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstrInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 3b0f1efbd02..ff2633eac3f 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -1730,9 +1730,9 @@ protected: // For virtual registers, verify that the addend source register // is live here (as should have been assured above). - if (TargetRegisterInfo::isVirtualRegister(AddendSrcReg)) - assert(LIS->getInterval(AddendSrcReg).liveAt(FMAIdx) && - "Addend source register is not available!"); + assert((!TargetRegisterInfo::isVirtualRegister(AddendSrcReg) || + LIS->getInterval(AddendSrcReg).liveAt(FMAIdx)) && + "Addend source register is not live!"); // Transform: (O2 * O3) + O1 -> (O2 * O1) + O3.