From: Matt Arsenault Date: Fri, 17 Oct 2014 18:00:50 +0000 (+0000) Subject: R600/SI: Also check for FPImm literal constants X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0e974f694be84dca301c05dbb540dd4c776e963a;p=oota-llvm.git R600/SI: Also check for FPImm literal constants git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220067 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIShrinkInstructions.cpp b/lib/Target/R600/SIShrinkInstructions.cpp index 510619cf856..0b9e7ca9666 100644 --- a/lib/Target/R600/SIShrinkInstructions.cpp +++ b/lib/Target/R600/SIShrinkInstructions.cpp @@ -130,7 +130,7 @@ static void foldImmediates(MachineInstr &MI, const SIInstrInfo *TII, // Only one literal constant is allowed per instruction, so if src0 is a // literal constant then we can't do any folding. - if (Src0->isImm() && TII->isLiteralConstant(*Src0)) + if ((Src0->isImm() || Src0->isFPImm()) && TII->isLiteralConstant(*Src0)) return;