[llvm-bugs] [Bug 13059] Passing 8 x float vector to a function generates unnecessary instructions on x86-64

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=13059

Simon Pilgrim  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||llvm-...@redking.me.uk
 Resolution|--- |DUPLICATE

--- Comment #2 from Simon Pilgrim  ---
Resolving this - avoiding the frame pointer when using AVX was fixed in several
other bugs a long time ago.

*** This bug has been marked as a duplicate of bug 14159 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30249] AVX512 fails to select CMP of i1.

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30249

igorb  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from igorb  ---
Thanks,
revert commit r279960.
https://reviews.llvm.org/rL280625

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 25031] PowerPC code generation bug: relative branch cannot be resolved by linker

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=25031

Hal Finkel  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Hal Finkel  ---
r280626 should fix this. Please reopen if it does not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 29126] [InstCombine] fold insertelement of constant into shufflevector with constant operand

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=29126

Sanjay Patel  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Sanjay Patel  ---
Yep - forgot to resolve this bug.

Should be fixed with:
https://reviews.llvm.org/rL280504

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 28892] AVX512: fmsub intrinsic generates fmadd instruction

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=28892

Elena Demikhovsky  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #7 from Elena Demikhovsky  ---
I submitted an additional patch https://reviews.llvm.org/D24221 for review.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 25153] PowerPC DAG Pattern Instruction Selection Slowdown in LLVM 3.7

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=25153

Hal Finkel  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Hal Finkel  ---
Looks like this was committed back in February (r259691). Thanks again!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30273] New: [InstCombine] failed to convert selects into add

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30273

Bug ID: 30273
   Summary: [InstCombine] failed to convert selects into add
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: spatel+l...@rotateright.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

This example is a simplified test based on actual code in
InstCombineCompares.cpp as of r280624:

$ cat boolcow.c

#include 

unsigned foo(bool a, bool b) {
  unsigned ret = 0;
  if (a) ++ret;
  if (b) ++ret;
  return ret;
}


This is logically equivalent in C99 or C++ to:

unsigned goo(bool a, bool b) {
  return a + b;
}

It seems that there's a missing transform in InstCombine itself because the IR
for these two cases is:

$ ./clang -O1 boolcow.c -S -o - -emit-llvm
define i32 @foo(i1 %a, i1 %b) {
  %. = zext i1 %a to i32
  %inc4 = select i1 %a, i32 2, i32 1
  %ret.1 = select i1 %b, i32 %inc4, i32 %.
  ret i32 %ret.1
}

define i32 @goo(i1 %a, i1 %b) {
  %conv = zext i1 %a to i32
  %conv3 = zext i1 %b to i32
  %add = add nuw nsw i32 %conv3, %conv
  ret i32 %add
}

...so fix this bug, and the compiler might get faster. :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30274] New: Segfault in clang::FunctionDecl::getNumParams()

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30274

Bug ID: 30274
   Summary: Segfault in clang::FunctionDecl::getNumParams()
   Product: clang
   Version: trunk
  Hardware: Macintosh
OS: MacOS X
Status: NEW
  Severity: release blocker
  Priority: P
 Component: C++
  Assignee: unassignedclangb...@nondot.org
  Reporter: d...@mapbox.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
Classification: Unclassified

Latest llvm/clang segfaults on code that works with all earlier released
versions of clang.

Seen on OS X 10.11.6 with clang 4.x build from source like:
https://github.com/mapbox/mason/blob/2b550ea353f2cbfac823bdd6224688f1f3c35a3f/scripts/clang/4.x/script.sh

llvm git checkout was da488468796b9366fb9cd1d8010658077ff7759b /
https://llvm.org/svn/llvm-project/llvm/trunk@280600
91177308-0d34-0410-b5e6-96231b3b80d8
clang git checkout was 9933b39786ee646c3144099d59896b11911c2d82 /
https://llvm.org/svn/llvm-project/cfe/trunk@280597
91177308-0d34-0410-b5e6-96231b3b80d8

 - Terminal output of crash:
https://gist.github.com/springmeyer/6da336f794d96f456564f09e1a840f36
 - Backtrace:
https://gist.github.com/springmeyer/8f1f085f418b35b24a21a1db682243ae
 - Script generated after crash:
https://gist.github.com/springmeyer/3f98a684c4ccdf553a5879d40b8fd897
 - Pre-processed source (45 MB):
https://gist.githubusercontent.com/springmeyer/4d707fad1df2fc3c770e063ca3dc3660/raw/ea5076adb1b823fac9eab739e359a770f2315954/mapnik_json_feature_grammar-91251c.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 26946] llvm-toolchain-trusty-3.8 uploaded wrongly as llvm-toolchain-trusty

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=26946

Daniel Black  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||danie...@au1.ibm.com
 Resolution|--- |FIXED

--- Comment #1 from Daniel Black  ---
these instructions on http://apt.llvm.org/ have been updated and both variants
are allowed (with URL change).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30275] New: jessie 3.9 stable apt respository showing Hash Sum mismatch

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30275

Bug ID: 30275
   Summary: jessie 3.9 stable apt respository showing Hash Sum
mismatch
   Product: Packaging
   Version: unspecified
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: deb packages
  Assignee: unassignedb...@nondot.org
  Reporter: danie...@au1.ibm.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

During apt update..

W: Failed to fetch
http://apt.llvm.org/jessie/dists/llvm-toolchain-jessie-3.9/main/binary-amd64/Packages
 Hash Sum mismatch

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30276] New: PowerPC64: Code hits "Impossible reg-to-reg copy" assertion

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30276

Bug ID: 30276
   Summary: PowerPC64: Code hits "Impossible reg-to-reg copy"
assertion
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: Backend: PowerPC
  Assignee: unassignedb...@nondot.org
  Reporter: an...@samba.org
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

The following test case:

int a, b;
int fn2(int);
void fn1(void) { b = fn2(1 ^ ((a != 1) | (0 != b))) <= 0; }

Hits an assertion:

# clang -O0 -c testcase.c

Impossible reg-to-reg copy
UNREACHABLE executed at
/home/anton/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:943!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30240] std::string: append(first, last) error when aliasing

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30240

Marshall Clow (home)  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Marshall Clow (home)  ---
Fixed in revision 280643.  Note that this will require a new dylib.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 30277] New: Clang 3.6 cannot compile program with -std=c++14

2016-09-04 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30277

Bug ID: 30277
   Summary: Clang 3.6 cannot compile program with -std=c++14
   Product: clang
   Version: 3.6
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: C++14
  Assignee: unassignedclangb...@nondot.org
  Reporter: noloa...@gmail.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

I'm working on Ubuntu 14.0.5 LTS. Ubuntu provides GCC 4.8 and Clang 3.6.

Clang 3.6 provided by Ubuntu claims to support C++14. -std=c++14 is not
rejected by the compiler during feature testing. The feature test program
includes the C++ header .

Attempting to compile a test program:

$ cat test.cxx
#include 
int main(int argc, char* argv[])
{
  return 0;
}

Results in the following:

$ clang++ -std=c++14 test.cxx -o test.exe
In file included from test.cxx:1:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/string:52:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/basic_string.h:2815:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/string_conversions.h:43:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11:
error:
  no member named 'gets' in the global namespace
  using ::gets;
~~^
1 error generated.

**

Ubuntu Issue at "Clang 3.6 cannot compile program with -std=c++14",
http://bugs.launchpad.net/ubuntu/+bug/1620181 .

According to http://stackoverflow.com/q/17775390/608639, this issue is present
as early as Clang 3.3.

An interesting answer from a similar error report on Stack Overflow reveals
this (http://stackoverflow.com/a/17776548/608639):



This note in the gets manpage looks relevant:

ISO C11 removes the specification of gets() from the C language, and since
version 2.16, glibc header files don't expose the function declaration if the
_ISOC11_SOURCE feature test macro is defined.

Probably should be:

#if !_ISOC11_SOURCE
using ::gets;
#endif



**

$ clang++ -v
Ubuntu clang version 3.6.0-2ubuntu1~trusty1 (tags/RELEASE_360/final) (based on
LLVM 3.6.0)
Target: x86_64-pc-linux-gnu
Thread model: posix

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs