commit | 7805fa4acc85712c8c9d931f03dfc5888caed6d8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Mar 17 16:29:26 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Mar 17 16:29:26 2005 +0000 |
tree | 298a59655a8090487cf7a1316beee0f90414f324 | |
parent | 8f45731da5ce79624b5212b724e7ec5a1f2996fa [diff] [blame] |
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
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 9b68ad8..4ae2130 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp
@@ -1078,6 +1078,7 @@ BuildMI(BB, X86::FTST, 1).addReg(Reg); BuildMI(BB, X86::FNSTSW8r, 0); BuildMI(BB, X86::SAHF, 1); + return; } }