diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-17 16:29:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-17 16:29:26 +0000 |
commit | 7805fa4acc85712c8c9d931f03dfc5888caed6d8 (patch) | |
tree | 298a59655a8090487cf7a1316beee0f90414f324 | |
parent | 8f45731da5ce79624b5212b724e7ec5a1f2996fa (diff) |
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
-rw-r--r-- | lib/Target/X86/X86ISelPattern.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 9b68ad8b02..4ae21305b7 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -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; } } |