mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Don't emit two comparisons when comparing a FP value against zero!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f45731da5
commit
7805fa4acc
@ -1078,6 +1078,7 @@ void ISel::EmitCMP(SDOperand LHS, SDOperand RHS, bool HasOneUse) {
|
||||
BuildMI(BB, X86::FTST, 1).addReg(Reg);
|
||||
BuildMI(BB, X86::FNSTSW8r, 0);
|
||||
BuildMI(BB, X86::SAHF, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user