[llvm] r273111 - [SPARC] Additional condition required for DelaySlot fixing erratum in revision r273108.
Chris Dewhurst via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 19 05:56:43 PDT 2016
Author: lerochris
Date: Sun Jun 19 07:56:42 2016
New Revision: 273111
URL: http://llvm.org/viewvc/llvm-project?rev=273111&view=rev
Log:
[SPARC] Additional condition required for DelaySlot fixing erratum in revision r273108.
Modified:
llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp
Modified: llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp?rev=273111&r1=273110&r2=273111&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/DelaySlotFiller.cpp Sun Jun 19 07:56:42 2016
@@ -278,6 +278,13 @@ bool Filler::delayHasHazard(MachineBasic
Opcode >= SP::LDDArr && Opcode <= SP::LDrr)
return true;
+ // Same as above for FDIV and FSQRT on some LEON processors.
+ if (Subtarget->fixAllFDIVSQRT()
+ &&
+ Opcode >= SP::FDIVD && Opcode <= SP::FSQRTD)
+ return true;
+
+
return false;
}
More information about the llvm-commits
mailing list