commit | faf8f30ad7233c6c308df0fb7d844e4b744fd65a | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Thu Jan 21 20:19:54 2016 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Thu Jan 21 20:19:54 2016 +0000 |
tree | 4d56547c79127b074c5b60d5aacb987767573e5f | |
parent | 0679d14d7e935f54ece572ad5f72f5a7c3e3a624 [diff] |
[LibCallSimplifier] don't get fooled by a fake fmin() This is similar to the bug/fix: https://llvm.org/bugs/show_bug.cgi?id=26211 http://reviews.llvm.org/rL258325 The fmin() test case reveals another bug caused by sloppy code duplication. It will crash without this patch because fp128 is a valid floating-point type, but we would think that we had matched a function that used doubles. The new helper function can be used to replace similar checks that are used in several other places in this file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258428 91177308-0d34-0410-b5e6-96231b3b80d8