[llvm-bugs] [Bug 42857] New: "Function already has body?" assert on explicitly defaulted non-trivial dllexport ctor during explicit template instantiation

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42857

Bug ID: 42857
   Summary: "Function already has body?" assert on explicitly
defaulted non-trivial dllexport ctor during explicit
template instantiation
   Product: clang
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: LLVM Codegen
  Assignee: h...@chromium.org
  Reporter: h...@chromium.org
CC: alexandre.ga...@ubisoft.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk

struct Bar { Bar(); };
template  struct Foo { __declspec(dllexport) Foo() = default; Bar
b; };
template class Foo;


$ clang -c -target i686-pc-win32 /tmp/b.cc
clang-9: /work/llvm.monorepo/clang/lib/CodeGen/CodeGenFunction.cpp:662: void
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, const clang::CodeGen::CGFunctionInfo&, const
clang::CodeGen::FunctionArgList&, clang::SourceLocation,
clang::SourceLocation): Assertion `CurFn->isDeclaration() && "Function already
has body?"' failed.



Reported by Alexandre here: https://reviews.llvm.org/D65511#1608860

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42855, which changed state.

Bug 42855 Summary: 9.0rc1 test-release.sh phase 2/3 comparison failures
https://bugs.llvm.org/show_bug.cgi?id=42855

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42855] 9.0rc1 test-release.sh phase 2/3 comparison failures

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42855

Diana Picus  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE
 CC||diana.pi...@linaro.org

--- Comment #2 from Diana Picus  ---


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

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42775, which changed state.

Bug 42775 Summary: Crash in GetNeonType
https://bugs.llvm.org/show_bug.cgi?id=42775

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42775] Crash in GetNeonType

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42775

Hans Wennborg  changed:

   What|Removed |Added

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

--- Comment #8 from Hans Wennborg  ---
(In reply to David Major from comment #7)
> https://reviews.llvm.org/rL367323
> 
> (I'll leave the bug open to track the merge)

Merged to release_90 in r367525. Thanks!

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


[llvm-bugs] [Bug 42738] IPSCCP produces wrong code when passing structs

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42738

Jeroen Dobbelaere  changed:

   What|Removed |Added

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

--- Comment #5 from Jeroen Dobbelaere  ---
Yes, this fixes the issue.
Thanks !

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42823, which changed state.

Bug 42823 Summary: [DivRemPairs] Broken handling of RAUW
https://bugs.llvm.org/show_bug.cgi?id=42823

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42823] [DivRemPairs] Broken handling of RAUW

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42823

Hans Wennborg  changed:

   What|Removed |Added

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

--- Comment #7 from Hans Wennborg  ---
(In reply to Roman Lebedev from comment #6)
> Landed in rL367417.
> It won't cleanly cherry-pick because of tests - you want to copy the
> entirety of
> llvm/test/Transforms/DivRemPairs/ first, as of rL367416.

Thanks! Merged in r367531.

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


[llvm-bugs] [Bug 42724] lldb fails to build on windows with RegisterContextWindows_x64.cpp(297): error C2039: 'Rax': is not a member of '_CONTEXT'

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42724

Hans Wennborg  changed:

   What|Removed |Added

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

--- Comment #11 from Hans Wennborg  ---
(In reply to labath from comment #10)
> Hans, I am not sure if you were following along, but I believe r367414 is
> supposed to have fixed this problem.

Seems to be working. Thanks everyone!

I've merged it to release_90 in r367523.

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42724, which changed state.

Bug 42724 Summary: lldb fails to build on windows with 
RegisterContextWindows_x64.cpp(297): error C2039: 'Rax': is not a member of 
'_CONTEXT'
https://bugs.llvm.org/show_bug.cgi?id=42724

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 13707] [meta] VCPP compatibility issues

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=13707
Bug 13707 depends on bug 37937, which changed state.

Bug 37937 Summary: Clang-CL ICE with explicit specialization in class scope
https://bugs.llvm.org/show_bug.cgi?id=37937

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

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


[llvm-bugs] [Bug 37937] Clang-CL ICE with explicit specialization in class scope

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=37937

Hans Wennborg  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #4 from Hans Wennborg  ---
(In reply to Stephen Kelly from comment #3)
> I don't use clang-cl regularly anymore. I suspect it depends on the version
> of the utility header or some other Windows header.

I tried and failed to reproduce in the command prompts of VS 2013, 2015, and
2017.

Since we can't reproduce, let's close this.

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


[llvm-bugs] [Bug 42836] Unit tests in Analysis/BasicAliasAnalysisTest.cpp failing on linux

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42836

Hans Wennborg  changed:

   What|Removed |Added

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

--- Comment #1 from Hans Wennborg  ---
Thanks! Let's track Bug 42719 as the blocker and hopefully pick up the fix from
that.

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

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42836, which changed state.

Bug 42836 Summary: Unit tests in Analysis/BasicAliasAnalysisTest.cpp failing on 
linux
https://bugs.llvm.org/show_bug.cgi?id=42836

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42858] New: Out-of-tree build of static library fails when compiled against static libunwind

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42858

Bug ID: 42858
   Summary: Out-of-tree build of static library fails when
compiled against static libunwind
   Product: libc++abi
   Version: 9.0
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: unassignedb...@nondot.org
  Reporter: p...@delley.net
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

The problem is that the final merge step for libc++abi expects to find the
location of the libunwind archive from the CMake target, which only exists for
in-tree builds. To me, that seems like a bug in the CMake scripts for libc++abi
- I would assume that the intention is to support static builds for out-of-tree
builds.

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


[llvm-bugs] [Bug 42859] New: Handle windows line endings in QueryDriver

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42859

Bug ID: 42859
   Summary: Handle windows line endings in QueryDriver
   Product: clang-tools-extra
   Version: unspecified
  Hardware: PC
OS: Windows 2000
Status: NEW
  Severity: enhancement
  Priority: P
 Component: clangd
  Assignee: unassignedclangb...@nondot.org
  Reporter: kadircetinkaya.06...@gmail.com
CC: llvm-bugs@lists.llvm.org

Got fixed with,

https://reviews.llvm.org/rL366545

Can you merge it into the 9 branch @hans ?

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


[llvm-bugs] [Bug 42860] New: loop-instsimplify makes function broken with "opt -sroa -loop-rotate -jump-threading -lcssa -loop-instsimplify"

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42860

Bug ID: 42860
   Summary: loop-instsimplify makes function broken with "opt
-sroa -loop-rotate -jump-threading -lcssa
-loop-instsimplify"
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: csz...@163.com
CC: llvm-bugs@lists.llvm.org

Created attachment 22329
  --> https://bugs.llvm.org/attachment.cgi?id=22329&action=edit
.bc file of the source code

$clang -v
clang version 10.0.0 (trunk 367076)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jack-zhou/Documents/llvm/llvm_truck/llvm2/build4/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.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.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

$clang -O3 -c -emit-llvm -femit-all-decls -mllvm -disable-llvm-optzns small.c

$opt -sroa -loop-rotate -jump-threading -lcssa  -loop-instsimplify small.bc -o
small-opt.bc
PHI nodes must have at least one entry.  If the block is dead, the PHI should
be removed!
  %h.3.lcssa40 = phi i16 
in function g
LLVM ERROR: Broken function found, compilation aborted!

-
int a, b, c, e, f;
char d;
void g() {
  short h = 0;
  int i, j;
k:
  d = h;
l:
  for (; 0; c) {
int m;
int *n[10][8][3] = {&i, &m, &b, 0, &b, 0, 0, 0, &j, &b, &a, &a};
long o[8];
for (; e;)
  for (; f; f++)
o[f];
for (; 0;) {
  int p;
  for (;; e)
if (p)
  goto k;
}
if (h)
  break;
h = 0;
  }
  goto l;
}

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


[llvm-bugs] [Bug 42861] New: Regression 9.0.0-RC1 Assertion failed: (!E || isa(E)) && "missing non-odr-use marking for unevaluated decl ref",

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42861

Bug ID: 42861
   Summary: Regression 9.0.0-RC1 Assertion failed: (!E ||
isa(E)) && "missing non-odr-use
marking for unevaluated decl ref",
   Product: clang
   Version: 9.0
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: -New Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: jva...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk

Failure on windows: (compiles with 7.0.0)

// clang-cl.exe /nologo /c -w  /EHsc  /std:c++17 t.cpp 
#include 

struct A {
  virtual ~A() = default;
};

struct __declspec(dllexport) B : A {};

template  struct C { void f(const T &); };
struct __declspec(dllexport) D : C {};

template  void C::f(const T &t) {
  [&t](auto) { typeid(t); }(0);
}


Error
=
Assertion failed: (!E || isa(E)) && "missing non-odr-use
marking for unevaluated decl ref", file
C:\src\llvm_package_900-rc1\llvm\tools\clang\lib\Sema\SemaExpr.cpp, line 16401
Stack dump:
0.  Program arguments: clang-cl.exe -cc1 -triple
x86_64-pc-windows-msvc19.16.27027 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -main-file-name t.cpp
-mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -mllvm -x86-asm-syntax=intel -D_MT -flto-visibility-public-std
--dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2
-fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile
-fdiagnostics-format msvc -dwarf-column-info -coverage-notes-file t.gcno
-resource-dir LLVM_9_0_0-RC1\lib\clang\9.0.0 -internal-isystem
LLVM_9_0_0-RC1\lib\clang\9.0.0\include -internal-isystem
C:\DevStudio\Vs2017\VC\Tools\MSVC\14.16.27023\ATLMFC\include -internal-isystem
C:\DevStudio\Vs2017\VC\Tools\MSVC\14.16.27023\include -internal-isystem
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um -internal-isystem
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt
-internal-isystem C:\Program Files (x86)\Windows
Kits\10\include\10.0.17763.0\shared -internal-isystem C:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\um -internal-isystem C:\Program
Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -internal-isystem
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt -w
-fdeprecated-macro -fdebug-compilation-dir F:\Other\tests\assert_odr
-ferror-limit 19 -fmessage-length 172 -fno-use-cxa-atexit -fms-extensions
-fms-compatibility -fms-compatibility-version=19.16.27027 -std=c++17
-fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -faddrsig -o t.obj -x c++ t.cpp
1.   parser at end of file
2.  t.cpp:9:39: instantiating function definition 'C::f'
3.  t.cpp:13:3: instantiating function definition 'C::f(const B
&)::(anonymous class)::operator()'
 #0 0x7ff68299a126 (clang-cl.exe+0x1dda126)
 #1 0x7ffa2790d167 (C:\Windows\System32\ucrtbase.dll+0x6d167)
 #2 0x7ffa2790dff1 (C:\Windows\System32\ucrtbase.dll+0x6dff1)
 #3 0x7ffa2790fd5a (C:\Windows\System32\ucrtbase.dll+0x6fd5a)
 #4 0x7ffa2790fc51 (C:\Windows\System32\ucrtbase.dll+0x6fc51)
 #5 0x7ffa2790ffaf (C:\Windows\System32\ucrtbase.dll+0x6ffaf)
 #6 0x7ff6843dba2d (clang-cl.exe+0x381ba2d)
 #7 0x7ff6843835b4 (clang-cl.exe+0x37c35b4)

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


[llvm-bugs] [Bug 42846] [X86] Assertion "Cannot merge volatile loads"

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42846

Simon Pilgrim  changed:

   What|Removed |Added

 Fixed By Commit(s)||r367556
 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Simon Pilgrim  ---
Fixed by rL367556

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


[llvm-bugs] [Bug 42862] New: -Waddress-of-packed member should not trigger inside typeof/decltype/sizeof

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42862

Bug ID: 42862
   Summary: -Waddress-of-packed member should not trigger inside
typeof/decltype/sizeof
   Product: clang
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Frontend
  Assignee: unassignedclangb...@nondot.org
  Reporter: arichardson@gmail.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk

I noticed that -Waddress-of-packed member triggers inside a typeof expression:

struct foo {
char c;
int member;
} __attribute__((packed));


int* good(struct foo* f) {
__typeof__(&(f->member)) ptr = 0;
return ptr;
}

int* bad(struct foo* f) {
return &f->member;
}



GCC compiles this code fine and only complains when actually taking the
address.
Example: https://godbolt.org/z/XMrchk

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


[llvm-bugs] [Bug 42474] [meta] 9.0.0 Release Blockers

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42474
Bug 42474 depends on bug 42859, which changed state.

Bug 42859 Summary: Handle windows line endings in QueryDriver
https://bugs.llvm.org/show_bug.cgi?id=42859

   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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42859] Handle windows line endings in QueryDriver

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42859

Hans Wennborg  changed:

   What|Removed |Added

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

--- Comment #1 from Hans Wennborg  ---
(In reply to Kadir Cetinkaya from comment #0)
> Got fixed with,
> 
> https://reviews.llvm.org/rL366545
> 
> Can you merge it into the 9 branch @hans ?

Sure, merged in r367571.

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


[llvm-bugs] [Bug 42863] New: [DAGCombine] Convert isNegatibleForFree/GetNegatedExpression to a target hook

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42863

Bug ID: 42863
   Summary: [DAGCombine] Convert
isNegatibleForFree/GetNegatedExpression to a target
hook
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: llvm-...@redking.me.uk
CC: llvm-bugs@lists.llvm.org, matthew.arsena...@amd.com,
spatel+l...@rotateright.com

I'm hoping to get https://reviews.llvm.org/D63141 completed soon, after which
we should investigate refactoring isNegatibleForFree/GetNegatedExpression so
they can be used with target nodes as well.

This would encompass most of X86ISelLowering's combineFneg,
AMDGPUTargetLowering::performFNegCombine and probably others as well.

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


[llvm-bugs] [Bug 34544] cc1as chokes on assembly from clang's `-S` option when WebAssembly is the target

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=34544

Wouter van Oortmerssen  changed:

   What|Removed |Added

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

--- Comment #6 from Wouter van Oortmerssen  ---
Have been working on roundtripping a variety of C code thru .s, fixing
everything I can across, to the point where this should generally be considered
working now. If you come across any particular problems, please file individual
bugs for the missing assembler feature against me.

Some of the changes:

Section types: https://reviews.llvm.org/D63947
Allow offsets and p2align in symbol load: https://reviews.llvm.org/D63951
Allow @object in .type directives: https://reviews.llvm.org/D63955
Support .int16/32/64 directives: https://reviews.llvm.org/D63959
tablegen: distinguish float/int immediate operands:
https://reviews.llvm.org/D64039
Negative float constants: https://reviews.llvm.org/D64367
refactored utilities to not depend on MachineInstr:
https://reviews.llvm.org/D64643
.init_array: https://reviews.llvm.org/D64602
Infinity / nan: https://reviews.llvm.org/D64770
Call_indirect signatures: https://reviews.llvm.org/D64758

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


[llvm-bugs] [Bug 42272] With new pass manager assertion failure at O2: DominatorTree is different

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42272

Alina Sbirlea  changed:

   What|Removed |Added

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

--- Comment #8 from Alina Sbirlea  ---
Resolved by r367596.

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


[llvm-bugs] [Bug 42388] "Not enough space" when linking with whole-archive

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42388

Martin Storsjö  changed:

   What|Removed |Added

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

--- Comment #27 from Martin Storsjö  ---
Fixed in SVN r367599, and updated the x86_64 binary at the same url as before,
with the final form of the fix.

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


[llvm-bugs] [Bug 42864] New: [Filecheck] regex bound is broken after a bracket expression

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42864

Bug ID: 42864
   Summary: [Filecheck] regex bound is broken after a bracket
expression
   Product: Test Suite
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: lit
  Assignee: unassignedb...@nondot.org
  Reporter: yuanfang.c...@sony.com
CC: dan...@zuster.org, llvm-bugs@lists.llvm.org

; RUN: FileCheck -check-prefix=A -input-file %s %s
; A: Build ID: [[UUID:[[:xdigit:]]{5}]]

; RUN: FileCheck -check-prefix=B -input-file %s %s
; B: Build ID: {{[[:xdigit:]]{5}}}

Build ID: 12345


...  error: invalid regex: braces not balanced
; B: Build ID: {{[[:xdigit:]]{5}}}


{{[[:xdigit:]]+}} works.

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


[llvm-bugs] [Bug 42441] MC: Location info for fixups in .s files is missing.

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42441

Wouter van Oortmerssen  changed:

   What|Removed |Added

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

--- Comment #1 from Wouter van Oortmerssen  ---
Fixed by https://reviews.llvm.org/D65602

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


[llvm-bugs] [Bug 42865] New: Missed 'compress' codegen opportunity

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42865

Bug ID: 42865
   Summary: Missed 'compress' codegen opportunity
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: david.bolvan...@gmail.com
CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
llvm-...@redking.me.uk, spatel+l...@rotateright.com

int floatcompress(float* __restrict__ in, float* __restrict__ out, int N,
float T) {
  int n = 0;
  for (int i = 0; i < N; ++i) {
if (in[i] > T) out[n++] = in[i];
  }
  return n;
}

int intcompress(int* __restrict__ in, int* __restrict__ out, int N,
int T) {
  int n = 0;
  for (int i = 0; i < N; ++i) {
if (in[i] > T) out[n++] = in[i];
  }
  return n;
}

-Ofast -march=icelake-server

ICC uses 'vcompressps' / 'vpcompressd', Clang's codegen should be improved to
use them too..


Current codegen: https://godbolt.org/z/eS733l

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


[llvm-bugs] [Bug 42866] New: Floating point arguments are passed in integer registers for risc-v with -march=rv64g

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42866

Bug ID: 42866
   Summary: Floating point arguments are passed in integer
registers for risc-v with -march=rv64g
   Product: new-bugs
   Version: 9.0
  Hardware: Other
OS: Linux
Status: NEW
  Severity: normal
  Priority: P
 Component: new bugs
  Assignee: unassignedb...@nondot.org
  Reporter: grog...@micron.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

The TOT & clang 9.0.0-rc1 pass floating point arguments in integer registers
for
risc-v code when using the flag "-march=rv64g".

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


[llvm-bugs] [Bug 42867] New: fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume when enabling the new pass manager

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42867

Bug ID: 42867
   Summary: fatal error: error in backend: Cannot select:
intrinsic %llvm.coro.resume when enabling the new pass
manager
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: leonardc...@google.com
CC: llvm-bugs@lists.llvm.org

Created attachment 22331
  --> https://bugs.llvm.org/attachment.cgi?id=22331&action=edit
reproducer

We run into this error when running libc++ tests on x86_64 after building with
the new pass manager. The test specifically is 

`libc++ ::
std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp`

but we also see this for a few other coroutine tests. Off the top of my head, I
suspect that this might be from a pass that runs only under the legacy PM that
wasn't yet ported to the new PM.

Reproducer attached.

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


[llvm-bugs] [Bug 42868] New: ASAN allocator may return blocks without right red zone

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42868

Bug ID: 42868
   Summary: ASAN allocator may return blocks without right red
zone
   Product: compiler-rt
   Version: 4.0
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: asan
  Assignee: unassignedb...@nondot.org
  Reporter: vitalyb...@google.com
CC: llvm-bugs@lists.llvm.org

This regressed at r279572 and still broken on r367246

Usually next page is not mapped and so program may crash on SEGV instead of
nice ASAN report.

clang++ -w test.cc -O1 -fsanitize=address -o  /tmp/test
/tmp/test
test: test.cc:13: int main(): Assertion `__asan_address_is_poisoned(p + s)'
failed.



#include 
#include 
#include 

extern "C" int __asan_address_is_poisoned(void const volatile *addr);

int main() {
  std::vector allocs;
  for (int i = 0; i < 10; ++i) {
int s = 128;
char *p = (char *)malloc(s);
allocs.push_back(p);
assert(__asan_address_is_poisoned(p + s));
  }

  assert(!allocs.empty());
  for (auto p : allocs)
free(p);

}

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


[llvm-bugs] [Bug 42869] New: Enable notifications when release files are uploaded to github

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42869

Bug ID: 42869
   Summary: Enable notifications when release files are uploaded
to github
   Product: new-bugs
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: new bugs
  Assignee: unassignedb...@nondot.org
  Reporter: tstel...@redhat.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
Blocks: 39393

Anyone with write (commit) access to a github repository can upload release
files, so we should enable notifications when this happens to help catch
unauthorized uploads.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=39393
[Bug 39393] [meta] Tasks related to hosting source code at GitHub
-- 
You are receiving this mail because:
You are on the CC list for the bug.___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 42155] Clang-format Does Not Break Before Brace of Union with Setting BreakBeforeBraces: Allman

2019-08-01 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=42155

Owen Pan  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Fixed By Commit(s)||r367648
 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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs