[llvm-bugs] [Bug 31184] New: opt crashes with "opt -globals-aa -lcssa -functionattrs -rpo-functionattrs": Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by p

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31184

Bug ID: 31184
   Summary: opt crashes with "opt -globals-aa -lcssa
-functionattrs -rpo-functionattrs": Assertion
`ResultPass && "getAnalysis*() called on an analysis
that was not " "'required' by pass!"' failed
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287975)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -o small.bc small.c
$ opt -globals-aa -lcssa -functionattrs -rpo-functionattrs -o small-opt.bc
small.bc
opt:
/tmp/llvm-builder/llvm-source-trunk/include/llvm/PassAnalysisSupport.h:236:
AnalysisType& llvm::Pass::getAnalysisID(llvm::AnalysisID) const [with
AnalysisType = llvm::CallGraphWrapperPass; llvm::AnalysisID = const void*]:
Assertion `ResultPass && "getAnalysis*() called on an analysis that was not "
"'required' by pass!"' failed.
#0 0x01c45a45 (opt+0x1c45a45)
#1 0x01c43b2e (opt+0x1c43b2e)
#2 0x01c43c90 (opt+0x1c43c90)
#3 0x7fc0b4efc330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7fc0b3ce8c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7fc0b3cec028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7fc0b3ce1bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x7fc0b3ce1ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x0186c42d (opt+0x186c42d)
#9 0x017e0bda (opt+0x17e0bda)
#10 0x0078c9a1 (opt+0x78c9a1)
#11 0x7fc0b3cd3f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#12 0x007e6f4b (opt+0x7e6f4b)
Stack dump:
0.  Program arguments: opt -globals-aa -lcssa -functionattrs
-rpo-functionattrs -o small-opt.bc small.bc 
1.  Running pass 'Deduce function attributes in RPO' on module 'small.bc'.
Aborted (core dumped)
$ 


-


int main ()
{
  return 0; 
}

-- 
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 31185] New: opt crashes with "opt -mem2reg -instcombine -indvars -jump-threading -loop-rotate -loop-vectorize": Assertion `isa(Val) && "cast() argument of incompatible type!"'

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31185

Bug ID: 31185
   Summary: opt crashes with "opt -mem2reg -instcombine -indvars
-jump-threading -loop-rotate -loop-vectorize":
Assertion `isa(Val) && "cast() argument of
incompatible type!"' failed
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287975)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -w -o small.bc small.c
$ opt -mem2reg -instcombine -indvars -jump-threading -loop-rotate
-loop-vectorize -o small-opt.bc small.bc
opt: /tmp/llvm-builder/llvm-source-trunk/include/llvm/Support/Casting.h:236:
typename llvm::cast_retty::ret_type llvm::cast(Y*) [with X =
llvm::Instruction; Y = llvm::Value; typename llvm::cast_retty::ret_type
= llvm::Instruction*]: Assertion `isa(Val) && "cast() argument of
incompatible type!"' failed.
#0 0x01c45a45 (opt+0x1c45a45)
#1 0x01c43b2e (opt+0x1c43b2e)
#2 0x01c43c90 (opt+0x1c43c90)
#3 0x7f1290016330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7f128ee02c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7f128ee06028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7f128edfbbf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x7f128edfbca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x006d0694 (opt+0x6d0694)
#9 0x013d6a21 (opt+0x13d6a21)
#10 0x01d53b83 (opt+0x1d53b83)
#11 0x01d63e58 (opt+0x1d63e58)
#12 0x01d6ccfe (opt+0x1d6ccfe)
#13 0x01d6d605 (opt+0x1d6d605)
#14 0x01d6dc96 (opt+0x1d6dc96)
#15 0x017dfe83 (opt+0x17dfe83)
#16 0x017dff2c (opt+0x17dff2c)
#17 0x017e0bda (opt+0x17e0bda)
#18 0x0078c9a1 (opt+0x78c9a1)
#19 0x7f128ededf45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#20 0x007e6f4b (opt+0x7e6f4b)
Stack dump:
0.  Program arguments: opt -mem2reg -instcombine -indvars -jump-threading
-loop-rotate -loop-vectorize -o small-opt.bc small.bc 
1.  Running pass 'Function Pass Manager' on module 'small.bc'.
2.  Running pass 'Loop Vectorization' on function '@fn1'
Aborted (core dumped)
$ 





void fn1 ()
{
  int a = 1;
  short b, c;
  for (b = 1; b; b++)
{
  for (c = 0; c < 0; c--)
;
  a = c;
}
  a && 1;
}

int main ()
{
  fn1 (); 
  return 0;
}

-- 
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 31186] New: opt crashes with "opt -loop-rotate -licm -loop-unroll -loop-vectorize": Assertion `Headers.size() >= 2 && "Expected irreducible CFG; -loop-info is likely invalid"' failed

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31186

Bug ID: 31186
   Summary: opt crashes with "opt -loop-rotate -licm -loop-unroll
-loop-vectorize": Assertion `Headers.size() >= 2 &&
"Expected irreducible CFG; -loop-info is likely
invalid"' failed
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287975)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -o small.bc small.c
$ opt -loop-rotate -licm -loop-unroll -loop-vectorize -o small-opt.bc small.bc
opt:
/tmp/llvm-builder/llvm-source-trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp:670:
void findIrreducibleHeaders(const llvm::BlockFrequencyInfoImplBase&, const
llvm::bfi_detail::IrreducibleGraph&, const std::vector&,
llvm::BlockFrequencyInfoImplBase::LoopData::NodeList&,
llvm::BlockFrequencyInfoImplBase::LoopData::NodeList&): Assertion
`Headers.size() >= 2 && "Expected irreducible CFG; -loop-info is likely
invalid"' failed.
#0 0x01c45a45 (opt+0x1c45a45)
#1 0x01c43b2e (opt+0x1c43b2e)
#2 0x01c43c90 (opt+0x1c43c90)
#3 0x7fce8a932330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7fce8971ec37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7fce89722028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7fce89717bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x7fce89717ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x01290c8d (opt+0x1290c8d)
#9 0x01286718 (opt+0x1286718)
#10 0x01286dc0 (opt+0x1286dc0)
#11 0x0128704d (opt+0x128704d)
#12 0x017dfe83 (opt+0x17dfe83)
#13 0x017dff2c (opt+0x17dff2c)
#14 0x017e0bda (opt+0x17e0bda)
#15 0x0078c9a1 (opt+0x78c9a1)
#16 0x7fce89709f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#17 0x007e6f4b (opt+0x7e6f4b)
Stack dump:
0.  Program arguments: opt -loop-rotate -licm -loop-unroll -loop-vectorize
-o small-opt.bc small.bc 
1.  Running pass 'Function Pass Manager' on module 'small.bc'.
2.  Running pass 'Block Frequency Analysis' on function '@fn1'
Aborted (core dumped)
$ 





int a, b;

void fn1 ()
{
  for (; a; a++)
while (1) 
  {
while (b) 
  ;
if (a)
  break;
  }
}

int main ()
{
  fn1 ();
  return 0; 
}

-- 
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 31187] New: wrong code with "opt -loop-rotate -licm -loop-unroll"

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31187

Bug ID: 31187
   Summary: wrong code with "opt -loop-rotate -licm -loop-unroll"
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287975)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -o small.bc small.c
$ opt -loop-rotate -licm -loop-unroll -o small-opt.bc small.bc
$ llc -o small.s small-opt.bc
$ gcc small.s
$ ./a.out
0
$ 
$ clang -O0 small.c
$ ./a.out
1
$ 





int printf (const char *, ...); 

unsigned a;
int b, c[9][8], d, e; 

int main ()
{
  {
for (; e < 1; e++)
  {
c[3][1] = 0;
for (; a < 4; a++)
  for (; b < 9; b++)
for (d = 0; d < 8; d++)
  c[b][d] = 1;
  }
  }
  printf ("%d\n", c[3][1]);
  return 0; 
}

-- 
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 31188] New: opt crashes with "opt -globals-aa -lcssa -inline": UNREACHABLE executed at /tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31188

Bug ID: 31188
   Summary: opt crashes with "opt -globals-aa -lcssa -inline":
UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:8
22!
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287975)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -o small.bc small.c
$ opt -globals-aa -lcssa -inline -o small-opt.bc small.bc
While deleting: void ()* %foo
An asserting value handle still pointed to this value!
UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!
#0 0x01c45a45 (opt+0x1c45a45)
#1 0x01c43b2e (opt+0x1c43b2e)
#2 0x01c43c90 (opt+0x1c43c90)
#3 0x7f96639a9330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7f9662795c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7f9662799028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x01bef25a (opt+0x1bef25a)
#7 0x01819d08 (opt+0x1819d08)
#8 0x0181ab4d (opt+0x181ab4d)
#9 0x017a4382 (opt+0x17a4382)
#10 0x017a43d9 (opt+0x17a43d9)
#11 0x0188df31 (opt+0x188df31)
#12 0x012b8052 (opt+0x12b8052)
#13 0x017e0bda (opt+0x17e0bda)
#14 0x0078c9a1 (opt+0x78c9a1)
#15 0x7f9662780f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#16 0x007e6f4b (opt+0x7e6f4b)
Stack dump:
0.  Program arguments: opt -globals-aa -lcssa -inline -o small-opt.bc
small.bc 
1.  Running pass 'CallGraph Pass Manager' on module 'small.bc'.
Aborted (core dumped)
$ 


--


static void foo () {}

int main ()
{
  foo ();
  return 0; 
}

-- 
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 31189] New: opt crashes with "opt -instcombine -functionattrs -licm -licm": UNREACHABLE executed at /tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31189

Bug ID: 31189
   Summary: opt crashes with "opt -instcombine -functionattrs
-licm -licm": UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:8
22!
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287994)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -w -o small.bc small.c
$ opt -instcombine -functionattrs -licm -licm -o small-opt.bc small.bc
While deleting: i32 %call
An asserting value handle still pointed to this value!
UNREACHABLE executed at
/tmp/llvm-builder/llvm-source-trunk/lib/IR/Value.cpp:822!
#0 0x01c45c65 (opt+0x1c45c65)
#1 0x01c43d4e (opt+0x1c43d4e)
#2 0x01c43eb0 (opt+0x1c43eb0)
#3 0x7f4cf9abb330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7f4cf88a7c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7f4cf88ab028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x01bef47a (opt+0x1bef47a)
#7 0x01819ed8 (opt+0x1819ed8)
#8 0x0181ad1d (opt+0x181ad1d)
#9 0x017b6499 (opt+0x17b6499)
#10 0x017b25b5 (opt+0x17b25b5)
#11 0x01ab5984 (opt+0x1ab5984)
#12 0x01ab58af (opt+0x1ab58af)
#13 0x01ab58af (opt+0x1ab58af)
#14 0x01ab660a (opt+0x1ab660a)
#15 0x01ab6b24 (opt+0x1ab6b24)
#16 0x013465fb (opt+0x13465fb)
#17 0x017e0053 (opt+0x17e0053)
#18 0x012b8157 (opt+0x12b8157)
#19 0x017e0daa (opt+0x17e0daa)
#20 0x0078cfc1 (opt+0x78cfc1)
#21 0x7f4cf8892f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#22 0x007e756b (opt+0x7e756b)
Stack dump:
0.  Program arguments: opt -instcombine -functionattrs -licm -licm -o
small-opt.bc small.bc 
1.  Running pass 'CallGraph Pass Manager' on module 'small.bc'.
2.  Running pass 'Loop Pass Manager' on function '@fn2'
3.  Running pass 'Loop Invariant Code Motion' on basic block '%while.cond1'
Aborted (core dumped)
$ 


--


int a, b;

void fn1 (int p) {}

int fn2 ()
{
  while (a) 
while (a) 
  fn1 (b || fn2 ());
  return 0;
}

int main ()
{
  fn2 (); 
  return 0;
}

-- 
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 31190] New: opt crashes with "opt -simplifycfg -instcombine -loop-rotate -licm -loop-vectorize": Assertion `Idx >= 0 && "Invalid basic block argument!"' failed

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31190

Bug ID: 31190
   Summary: opt crashes with "opt -simplifycfg -instcombine
-loop-rotate -licm -loop-vectorize": Assertion `Idx >=
0 && "Invalid basic block argument!"' failed
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287994)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clang -c -emit-llvm -o small.bc small.c
$ opt -simplifycfg -instcombine -loop-rotate -licm -loop-vectorize -o
small-opt.bc small.bc
opt: /tmp/llvm-builder/llvm-source-trunk/include/llvm/IR/Instructions.h:2640:
llvm::Value* llvm::PHINode::getIncomingValueForBlock(const llvm::BasicBlock*)
const: Assertion `Idx >= 0 && "Invalid basic block argument!"' failed.
#0 0x01c45c65 (opt+0x1c45c65)
#1 0x01c43d4e (opt+0x1c43d4e)
#2 0x01c43eb0 (opt+0x1c43eb0)
#3 0x7f3f1ea0a330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x7f3f1d7f6c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7f3f1d7fa028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7f3f1d7efbf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x7f3f1d7efca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00747c1e (opt+0x747c1e)
#9 0x01cc9214 (opt+0x1cc9214)
#10 0x01d69446 (opt+0x1d69446)
#11 0x01d6b35c (opt+0x1d6b35c)
#12 0x01d6d7b5 (opt+0x1d6d7b5)
#13 0x01d6de46 (opt+0x1d6de46)
#14 0x017e0053 (opt+0x17e0053)
#15 0x017e00fc (opt+0x17e00fc)
#16 0x017e0daa (opt+0x17e0daa)
#17 0x0078cfc1 (opt+0x78cfc1)
#18 0x7f3f1d7e1f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#19 0x007e756b (opt+0x7e756b)
Stack dump:
0.  Program arguments: opt -simplifycfg -instcombine -loop-rotate -licm
-loop-vectorize -o small-opt.bc small.bc 
1.  Running pass 'Function Pass Manager' on module 'small.bc'.
2.  Running pass 'Loop Vectorization' on function '@fn1'
Aborted (core dumped)
$ 


-


int a, b[1], c;

void fn1 ()
{
  for (; c; c++)
for (a = 0; a; a++)
  b[c] = 4;
}

int main ()
{
  fn1 (); 
  return 0; 
}

-- 
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 31191] New: PowerPC64: fatal error with -mcpu=power9

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31191

Bug ID: 31191
   Summary: PowerPC64: fatal error with -mcpu=power9
   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: ameh...@ca.ibm.com, hfin...@anl.gov,
kbar...@ca.ibm.com, llvm-bugs@lists.llvm.org,
nemanja.i@gmail.com
Classification: Unclassified

The following test case:

int a, b, c;

void d(void)
{
b = 8;

for (; b <= 27; ++b) {
char *e = (char *)&a;
c &= ++*e;
}
}

when built with:

clang -Wall -Os -mcpu=power9 -c testcase.c

fails with:

fatal error: error in backend: Cannot select: 0x10018a9cfa0: v16i8 =
BUILD_VECTOR Constant:i32<1>, Constant:i32<2>, Constant:i32<3>,
  Constant:i32<4>, undef:i32, undef:i32, undef:i32, undef:i32, undef:i32,
undef:i32, undef:i32, undef:i32, undef:i32, undef:i32, undef:i32,
  undef:i32
  0x10018a9c718: i32 = Constant<1>
  0x10018a9ce00: i32 = Constant<2>
  0x10018a9c9f0: i32 = Constant<3>
  0x10018a9d0d8: i32 = Constant<4>
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
In function: d
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (git://github.com/llvm-mirror/clang.git
b3eb023bef514b684fcb374ae674c251e48514fd)
(https://github.com/llvm-mirror/llvm.git
9fdd2a607c03e086c571c54018ab87a4d40798e5)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/anton/llvm.install/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.9: note: diagnostic msg: 


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/testcase-ca18a3.c
clang-3.9: note: diagnostic msg: /tmp/testcase-ca18a3.sh
clang-3.9: note: diagnostic msg: 



-- 
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 31192] New: Unwinding of noreturn functions fails if the function is the last function in a section

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31192

Bug ID: 31192
   Summary: Unwinding of noreturn functions fails if the function
is the last function in a section
   Product: lldb
   Version: unspecified
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-...@lists.llvm.org
  Reporter: lab...@google.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

The reason for that is that the caller PC can end up outside the bounds of any
module. We have special code which handles the case where the PC lands outside
the function bounds (but still within the correct module). However that fails
when the PC actually ends up outside any module.

Currently, this breaks TestNoreturnUnwind on android x86_64, but I am pretty
sure it can be reproduced on any target.

-- 
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 31169] [inline asm] asm goto not supported

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31169

Reid Kleckner  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||r...@google.com
 Resolution|--- |DUPLICATE

--- Comment #1 from Reid Kleckner  ---


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

-- 
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 31193] New: PowerPC - code generation issue when using -break-anti-dependences=critical

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31193

Bug ID: 31193
   Summary: PowerPC - code generation issue when using
-break-anti-dependences=critical
   Product: new-bugs
   Version: 3.9
  Hardware: Other
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: new bugs
  Assignee: unassignedb...@nondot.org
  Reporter: eric.schwe...@pgroup.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

Created attachment 17676
  --> https://llvm.org/bugs/attachment.cgi?id=17676&action=edit
branch target out of range

We are seeing the following problem with the attached input (reduced.ll) with
the OpenPOWER8 tools.

% llc -version
LLVM (http://llvm.org/):
  LLVM version 3.9.1
  Optimized build.
  Default target: powerpc64le-unknown-linux-gnu
  Host CPU: pwr8

  Registered Targets:
ppc32   - PowerPC 32
ppc64   - PowerPC 64
ppc64le - PowerPC 64 LE
% llc reduced.ll -mcpu=native -O2 -break-anti-dependencies=critical
-code-model=large -o reduced.s
% /usr/bin/as reduced.s -mpower8 -o reduced.o
reduced.s: Assembler messages:
reduced.s:751: Error: operand out of range (0x8000 is not between
0x8000 and 0x7ffc)

This does not reproduce on trunk with this .ll file; however, small
perturbations in code generation could cause the label to fall within range.

If -filetype=obj is used, no diagnostic is given, but the output has a backward
branch to the incorrect target rather than a forward branch.

-- 
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 31137] Wrong DSA for members in struct.

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31137

Alexey Bataev  changed:

   What|Removed |Added

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

--- Comment #3 from Alexey Bataev  ---
Fixed in rL288039

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31083, which changed state.

Bug 31083 Summary: Merge rL287227 into the 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31083

   What|Removed |Added

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

-- 
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 31083] Merge rL287227 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31083

Alexey Bataev  changed:

   What|Removed |Added

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

--- Comment #2 from Alexey Bataev  ---
Committed r288048.

-- 
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 30963] clang-cl does not match MSVC in converting string literal to void*

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30963

Hans Wennborg  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||h...@chromium.org
 Resolution|--- |WONTFIX

--- Comment #4 from Hans Wennborg  ---
Marking wontfix as I don't think this is something we'll want do do.

-- 
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 31174] Merge r287999 into 3.9.x branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31174

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #1 from Tom Stellard  ---
Merged as r288058.

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31174, which changed state.

Bug 31174 Summary: Merge r287999 into 3.9.x branch
https://llvm.org/bugs/show_bug.cgi?id=31174

   What|Removed |Added

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

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31113, which changed state.

Bug 31113 Summary: Merge r279980 to 3.9.1
https://llvm.org/bugs/show_bug.cgi?id=31113

   What|Removed |Added

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

-- 
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 31113] Merge r279980 to 3.9.1

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31113

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #3 from Tom Stellard  ---
Merged as r288063.

-- 
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 31139] Merge r281650 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31139

Tom Stellard  changed:

   What|Removed |Added

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

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31139, which changed state.

Bug 31139 Summary: Merge r281650 into the 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31139

   What|Removed |Added

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

-- 
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 31195] New: Merge r281403 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31195

Bug ID: 31195
   Summary: Merge r281403 into the 3.9 branch
   Product: libraries
   Version: 3.9
  Hardware: PC
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: chf...@gmail.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

[CodeGen] Fix invalid shift in mul expansion
Summary: When expanding mul in type legalization make sure the type for shift
amount can actually fit the value. This fixes PR30354
https://llvm.org/bugs/show_bug.cgi?id=30354.

Reviewers: hfinkel, majnemer, RKSimon

Subscribers: RKSimon, llvm-commits

Differential Revision: https://reviews.llvm.org/D24478

-- 
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 31073] Merge r283599 and r283612 to 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31073

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #4 from Tom Stellard  ---
Merged as r288069 and r288070.

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31073, which changed state.

Bug 31073 Summary: Merge r283599 and r283612 to 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31073

   What|Removed |Added

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

-- 
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 30725] Merge r281650 to 3.9

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30725

Tom Stellard  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Tom Stellard  ---


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

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 30725, which changed state.

Bug 30725 Summary: Merge r281650 to 3.9
https://llvm.org/bugs/show_bug.cgi?id=30725

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

-- 
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 29139] AllocaSliceRewriter::visit(llvm::sroa::AllocaSlices::const_iterator): Assertion `CanSROA' failed

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=29139

Eli Friedman  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||efrie...@codeaurora.org
 Resolution|--- |FIXED

--- Comment #7 from Eli Friedman  ---
https://reviews.llvm.org/rL288074

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 30871, which changed state.

Bug 30871 Summary: Merge r285782 to 3.9
https://llvm.org/bugs/show_bug.cgi?id=30871

   What|Removed |Added

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

-- 
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 30871] Merge r285782 to 3.9

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30871

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #3 from Tom Stellard  ---
Merged as r288075.

-- 
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 30724] Merge r284444 to 3.9.x

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30724

Tom Stellard  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tstel...@gmail.com
 Resolution|--- |FIXED

--- Comment #5 from Tom Stellard  ---
Merged as r288078.

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 30724, which changed state.

Bug 30724 Summary: Merge r28 to 3.9.x
https://llvm.org/bugs/show_bug.cgi?id=30724

   What|Removed |Added

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

-- 
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 31026] Merge r286998 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31026

Paweł Bylica  changed:

   What|Removed |Added

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

--- Comment #9 from Paweł Bylica  ---
Merge as r288086.

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31026, which changed state.

Bug 31026 Summary: Merge r286998 into the 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31026

   What|Removed |Added

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

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31195, which changed state.

Bug 31195 Summary: Merge r281403 into the 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31195

   What|Removed |Added

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

-- 
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 31195] Merge r281403 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31195

Paweł Bylica  changed:

   What|Removed |Added

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

--- Comment #4 from Paweł Bylica  ---
Merge as r288085

-- 
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 31026] Merge r286998 into the 3.9 branch

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31026

Bug 31026 depends on bug 31195, which changed state.

Bug 31195 Summary: Merge r281403 into the 3.9 branch
https://llvm.org/bugs/show_bug.cgi?id=31195

   What|Removed |Added

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

-- 
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 31196] New: lld -Ttext 0x600 (as used in FreeBSD boot loader) results in 4GB output on i386

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31196

Bug ID: 31196
   Summary: lld -Ttext 0x600 (as used in FreeBSD boot loader)
results in 4GB output on i386
   Product: lld
   Version: unspecified
  Hardware: PC
OS: FreeBSD
Status: NEW
  Severity: normal
  Priority: P
 Component: ELF
  Assignee: unassignedb...@nondot.org
  Reporter: ema...@freebsd.org
CC: llvm-bugs@lists.llvm.org
Blocks: 23214
Classification: Unclassified

Created attachment 17677
  --> https://llvm.org/bugs/attachment.cgi?id=17677&action=edit
reproducer for large output with -Ttext 0x0600

Found while testing the WIP -N support in https://reviews.llvm.org/D26888

The boot0 boot component is linked with the following command line:

ld --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both
--enable-new-dtags -m elf_i386_fbsd -o boot0 -L/usr/lib32 -Ttext 0x600 -e start
-N -S --oformat binary boot0.o

This produces 4GB output:

% ls -l boot0
-rwxr-xr-x  1 emaste  emaste  4294903808 28 Nov 18:01 boot0

Outputting as ELF instead by dropping the --oformat binary:

% /tank/emaste/src/llvm/build-debug/bin/ld.lld  --eh-frame-hdr -dynamic-linker
/libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -m elf_i386_fbsd -o
boot0 -L/usr/lib32 -Ttext 0x600 -e start -N -S boot0.o

lets us see what's going on (note the Off column):

% readelf -S boot0
There are 8 section headers, starting at offset 0x0e60:

Section Headers:
  [Nr] Name  TypeAddr OffSize   ES Flg Lk Inf
Al
  [ 0]   NULL 00 00 00  0   0 
0
  [ 1] .text PROGBITS0600 0600 000200 00  AX  0   0
 4
  [ 2] .data PROGBITS0800 0800 00 00  WA  0   0
 4
  [ 3] .bss  NOBITS  0800 0800 00 00  WA  0   0
 4
  [ 4] .comment  PROGBITS 0800 55 01  MS  0   0
 1
  [ 5] .symtab   SYMTAB   0858 0003e0 10  7  61
 4
  [ 6] .shstrtab STRTAB   0c38 35 00  0   0
 1
  [ 7] .strtab   STRTAB   0c6d 0001f1 00  0   0
 1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

For reference, here's the output when linked by ld.bfd 2.17.50:

% readelf -S boot0
There are 5 section headers, starting at offset 0x278:

Section Headers:
  [Nr] Name  TypeAddr OffSize   ES Flg Lk Inf
Al
  [ 0]   NULL 00 00 00  0   0 
0
  [ 1] .text PROGBITS0600 54 000200 00 WAX  0   0 
4
  [ 2] .shstrtab STRTAB   000254 21 00  0   0 
1
  [ 3] .symtab   SYMTAB   000340 000420 10  4  62 
4
  [ 4] .strtab   STRTAB   000760 000209 00  0   0 
1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

-- 
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 31197] New: [MS] Clang mangles lambdas in member initializers incorrectly

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31197

Bug ID: 31197
   Summary: [MS] Clang mangles lambdas in member initializers
incorrectly
   Product: clang
   Version: unspecified
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: normal
  Priority: P
 Component: LLVM Codegen
  Assignee: unassignedclangb...@nondot.org
  Reporter: r...@google.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

Consider:

struct A {
  int x = []() { return 1; }();
  int y = []() { return 2; }();
};
int main() {
  A a;
  return a.x + a.y;
}

Clang optimizes this program to return 2 on Windows, because both lambdas use
the mangling context of the expression evaluation contexts of 'x' and 'y'
respectively.

This is underlying cause of the current Windows build failures in
ToolingTest.cpp:

http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/846

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xutility(285,3):
 error: definition with same mangled name as another definition
_Compressed_pair(_One_then_variadic_args_t,
^
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xutility(285,3):
 note: previous definition is here
C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\INCLUDE\xutility(298,14):  error: definition with same mangled name as
another definition
const _Ty1& _Get_first() const _NOEXCEPT

-- 
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 31198] New: wrong code with "opt -sroa -simplifycfg -lcssa -loop-rotate -loop-vectorize -ipsccp"

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31198

Bug ID: 31198
   Summary: wrong code with "opt -sroa -simplifycfg -lcssa
-loop-rotate -loop-vectorize -ipsccp"
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287994)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$
$ clang -c -emit-llvm -o small.bc small.c
$ opt -sroa -simplifycfg -lcssa -loop-rotate -loop-vectorize -ipsccp -o
small-opt.bc small.bc
$ llc -o small.s small-opt.bc
$ gcc small.s
$ ./a.out
$
$ clang -O0 small.c
$ ./a.out
0
$


-


int printf (const char *, ...);

int a[256], b, c;

int main ()
{ 
  int d = 0;
  for (; d < 256; d++)
a[d] = c;
  for (b = 0; !b; b--)
printf ("%d\n", b);
  return 0;
}

-- 
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 31199] New: wrong code with "opt -mem2reg -loop-rotate -licm -loop-unroll"

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31199

Bug ID: 31199
   Summary: wrong code with "opt -mem2reg -loop-rotate -licm
-loop-unroll"
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: s...@cs.ucdavis.edu
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287994)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$
$ clang -c -emit-llvm -o small.bc small.c
$ opt -mem2reg -loop-rotate -licm -loop-unroll -o small-opt.bc small.bc
$ llc -o small.s small-opt.bc
$ gcc small.s
$ ./a.out
0
$
$ clang -O0 small.c
$ ./a.out
1
$


---


int printf (const char *, ...);

int a, b, c, d[1] = {1};

int main ()
{ 
  int e;
  for (; c < 1; c++)
{ 
  for (e = 0; e < 1; e++)
for (; a < 1; a++)
  for (; b < 1; b++)
d[b] = 0;
  if (d[0])
a--;
}
  printf ("%d\n", a);
  return 0;
}

-- 
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 31087] Merge r284620 to 3.9.1

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31087

Bug 31087 depends on bug 31086, which changed state.

Bug 31086 Summary: Merge r281975 to 3.9.1
https://llvm.org/bugs/show_bug.cgi?id=31086

   What|Removed |Added

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

-- 
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 31086] Merge r281975 to 3.9.1

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31086

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #8 from Tom Stellard  ---
Merged as r288108.

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31086, which changed state.

Bug 31086 Summary: Merge r281975 to 3.9.1
https://llvm.org/bugs/show_bug.cgi?id=31086

   What|Removed |Added

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

-- 
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 30261] [Meta] 3.9.1 Merges and Bug Fixes

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=30261

Bug 30261 depends on bug 31087, which changed state.

Bug 31087 Summary: Merge r284620 to 3.9.1
https://llvm.org/bugs/show_bug.cgi?id=31087

   What|Removed |Added

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

-- 
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 31087] Merge r284620 to 3.9.1

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31087

Tom Stellard  changed:

   What|Removed |Added

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

--- Comment #3 from Tom Stellard  ---
Merged as r288109.

-- 
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 31200] New: clang-3.8.1 segfault on Mountain Lion during preprocessing in RemoveDuplicates

2016-11-28 Thread via llvm-bugs
https://llvm.org/bugs/show_bug.cgi?id=31200

Bug ID: 31200
   Summary: clang-3.8.1 segfault on Mountain Lion during
preprocessing in RemoveDuplicates
   Product: clang
   Version: 3.8
  Hardware: PC
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: -New Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: jerem...@apple.com
CC: llvm-bugs@lists.llvm.org
Classification: Unclassified

Created attachment 17682
  --> https://llvm.org/bugs/attachment.cgi?id=17682&action=edit
CMakeCCompilerId.c

cmake based projects are failing to compile using clang 3.8.1 on Mountain Lion
(newer versions aren't currently building on Mountain Lion, so I'm not sure if
this is fixed).  In comparison, clang 3.7.1 works fine.

As this fails during preprocessing, I cannot provide preprocessed source.

This issue does not occur with clang-3.8.1 on Sierra with the same input

$ clang-mp-3.7 --version
clang version 3.7.1 (tags/RELEASE_371/final)
Target: x86_64-apple-darwin12.6.0
Thread model: posix

$ clang-mp-3.8 --version
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin

$ clang-mp-3.7 -E CMakeCCompilerId.c -o /tmp/CMakeCCompilerId.pp.c

$ clang-mp-3.8 -E CMakeCCompilerId.c -o /tmp/CMakeCCompilerId.pp.c
0  libLLVM.dylib 0x0001057bd2ec
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  libLLVM.dylib 0x0001057bcba3 llvm::sys::RunSignalHandlers() + 44
2  libLLVM.dylib 0x0001057bd6c8 SignalHandler(int) + 153
3  libsystem_c.dylib 0x7fff87a0690a _sigtramp + 26
4  libsystem_c.dylib 0x0002 _sigtramp + 2019530514
5  libLLVM.dylib 0x000105785847
llvm::SmallPtrSetImplBase::insert_imp(void const*) + 133
6  clang 0x00010473384e
llvm::SmallPtrSetImpl::insert(clang::DirectoryEntry const*) + 24
7  clang 0x00010473322e
RemoveDuplicates(std::__1::vector >&, unsigned int, bool) + 309
8  clang 0x000104731c49
clang::ApplyHeaderSearchOptions(clang::HeaderSearch&,
clang::HeaderSearchOptions const&, clang::LangOptions const&, llvm::Triple
const&) + 4821
9  clang 0x0001046fa800
clang::CompilerInstance::createPreprocessor(clang::TranslationUnitKind) + 1456
10 clang 0x000104726d19
clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&,
clang::FrontendInputFile const&) + 2365
11 clang 0x0001046fd013
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 599
12 clang 0x00010474fba1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3273
13 clang 0x0001044a0685 cc1_main(llvm::ArrayRef,
char const*, void*) + 1243
14 clang 0x00010449f942 main + 8084
15 libdyld.dylib 0x7fff864127e1 start + 0
16 libdyld.dylib 0x002f start + 2042550350
Stack dump:
0.Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier
-main-file-name CMakeCCompilerId.c -mrelocation-model pic -pic-level 2
-mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 264.3.102 -dwarf-column-info
-debugger-tuning=lldb -resource-dir
/opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.1 -fdebug-compilation-dir
/Users/jeremy/src/macports/dports/www/webkit2-gtk-devel/work/build/CMakeFiles/3.7.0/CompilerIdC
-ferror-limit 19 -fmessage-length 233 -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.8.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/CMakeCCompilerId.pp.c -x c CMakeCCompilerId.c 
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).

-- 
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