[llvm-commits] [PATCH]Fix a typo in X86ISelLowering.cpp
Ivan Krasin
krasin at google.com
Thu Aug 4 03:04:12 PDT 2011
Hi Cameron,
On Thu, Aug 4, 2011 at 2:58 AM, Cameron Zwarich <zwarich at apple.com> wrote:
> Can you write a test case?
I would add this task into my queue, but I could not promise a fast turnaround.
Probably, it's fine, since this mistake already lives there for some
time and nobody complains about that.
Ivan Krasin
>
> Cameron
>
> ב-4 באוג 2011, בשעה 02:44, Ivan Krasin <krasin at chromium.org> כתב/ה:
>
>> Hi llvm team,
>>
>> this patch fixes a typo in lib/Target/X86/X86ISelLowering.cpp. The
>> credits go to http://habrahabr.ru/blogs/compilers/125626/ (Russian
>> hacker news)
>>
>> Ivan
>>
>> Index: lib/Target/X86/X86ISelLowering.cpp
>> ===================================================================
>> --- lib/Target/X86/X86ISelLowering.cpp (revision 136864)
>> +++ lib/Target/X86/X86ISelLowering.cpp (working copy)
>> @@ -11686,7 +11686,7 @@
>> // Converting this to a max would handle comparisons between positive
>> // and negative zero incorrectly.
>> if (!UnsafeFPMath &&
>> - !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(LHS))
>> + !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(RHS))
>> break;
>> Opcode = X86ISD::FMAX;
>> break;
>> <lhs-rhs-typo.patch>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list