mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Add a second ValueType argument to isFPImmLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2313,7 +2313,7 @@ static bool hasFPCMov(unsigned X86CC) {
|
||||
/// isFPImmLegal - Returns true if the target can instruction select the
|
||||
/// specified FP immediate natively. If false, the legalizer will
|
||||
/// materialize the FP immediate as a load from a constant pool.
|
||||
bool X86TargetLowering::isFPImmLegal(const APFloat &Imm) const {
|
||||
bool X86TargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
|
||||
for (unsigned i = 0, e = LegalFPImmediates.size(); i != e; ++i) {
|
||||
if (Imm.bitwiseIsEqual(LegalFPImmediates[i]))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user