mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 03:30:37 +00:00
Reuse a lookup in an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b89275550c
commit
f506831ede
@ -2269,10 +2269,10 @@ static ArrayRef<MCPhysReg> get64BitArgumentXMMs(MachineFunction &MF,
|
||||
|
||||
const Function *Fn = MF.getFunction();
|
||||
bool NoImplicitFloatOps = Fn->hasFnAttribute(Attribute::NoImplicitFloat);
|
||||
assert(!(MF.getTarget().Options.UseSoftFloat && NoImplicitFloatOps) &&
|
||||
bool isSoftFloat = MF.getTarget().Options.UseSoftFloat;
|
||||
assert(!(isSoftFloat && NoImplicitFloatOps) &&
|
||||
"SSE register cannot be used when SSE is disabled!");
|
||||
if (MF.getTarget().Options.UseSoftFloat || NoImplicitFloatOps ||
|
||||
!Subtarget->hasSSE1())
|
||||
if (isSoftFloat || NoImplicitFloatOps || !Subtarget->hasSSE1())
|
||||
// Kernel mode asks for SSE to be disabled, so there are no XMM argument
|
||||
// registers.
|
||||
return None;
|
||||
|
Loading…
x
Reference in New Issue
Block a user