mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
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
This commit is contained in:
parent
7d8f1710a3
commit
0e974f694b
@ -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;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user