commit | 43832b049e0e1f04c47bab50d3864aa61b1d626a | [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 | 3335667063199eb8cf553a2dfe1056b99c70f27e | |
parent | 9fcfb35e1aa8c3bb94e93dd92fb9cf7597be295f [diff] [blame] |
Don't emit two comparisons when comparing a FP value against zero! llvm-svn: 20651
diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp index 9b68ad8..4ae2130 100644 --- a/llvm/lib/Target/X86/X86ISelPattern.cpp +++ b/llvm/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; } }