[llvm-bugs] Issue 4588 in oss-fuzz: llvm/clang-fuzzer: Stack-buffer-overflow in clang::expandUCNs

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Status: New
Owner: 
CC: k...@google.com, masc...@google.com, jdevlieg...@apple.com,  
llvm-b...@lists.llvm.org, v...@apple.com
Labels: ClusterFuzz Stability-Memory-AddressSanitizer Reproducible  
Engine-libfuzzer Proj-llvm Reported-2017-12-11

Type: Bug-Security

New issue 4588 by ClusterFuzz-External: llvm/clang-fuzzer:  
Stack-buffer-overflow in clang::expandUCNs

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4588

Detailed report: https://oss-fuzz.com/testcase?key=5041559499177984

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-buffer-overflow READ 1
Crash Address: 0x7fcbded34038
Crash State:
  clang::expandUCNs
  clang::NumericLiteralParser::NumericLiteralParser
  clang::Sema::ActOnNumericConstant

Sanitizer: address (ASAN)

Recommended Security Severity: Medium

Regressed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=5041559499177984


Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


When you fix this bug, please
  * mention the fix revision(s).
  * state whether the bug was a short-lived regression or an old bug in any  
stable releases.

  * add any other useful information.
This information can help downstream consumers.

If you have questions for the OSS-Fuzz team, please file an issue at  
https://github.com/google/oss-fuzz/issues.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 4586 in oss-fuzz: llvm/clang-fuzzer: ASSERT: 0 && "Invalid SLocOffset or bad function choice"

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Status: New
Owner: 
CC: k...@google.com, masc...@google.com, jdevlieg...@apple.com,  
llvm-b...@lists.llvm.org, v...@apple.com
Labels: ClusterFuzz Stability-Memory-AddressSanitizer Reproducible  
Engine-libfuzzer Proj-llvm Reported-2017-12-11

Type: Bug

New issue 4586 by ClusterFuzz-External: llvm/clang-fuzzer: ASSERT: 0  
&& "Invalid SLocOffset or bad function choice"

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4586

Detailed report: https://oss-fuzz.com/testcase?key=6213724525297664

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: ASSERT
Crash Address:
Crash State:
  0 && "Invalid SLocOffset or bad function choice"
  clang::SourceManager::getFileIDLoaded
  clang::SourceManager::isAtEndOfImmediateMacroExpansion

Sanitizer: address (ASAN)

Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=6213724525297664


Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


When you fix this bug, please
  * mention the fix revision(s).
  * state whether the bug was a short-lived regression or an old bug in any  
stable releases.

  * add any other useful information.
This information can help downstream consumers.

If you have questions for the OSS-Fuzz team, please file an issue at  
https://github.com/google/oss-fuzz/issues.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 35615] New: [Clang-optimization] wrong code for elements in a union pointed by two types of global pointers

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35615

Bug ID: 35615
   Summary: [Clang-optimization] wrong code for elements in a
union pointed by two types of global pointers
   Product: clang
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: -New Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: yangyib...@nju.edu.cn
CC: llvm-bugs@lists.llvm.org

$ clang -v
clang version 6.0.0-svn320001-1~exp1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.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.2.0
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

$ cat small.c
int printf(const char *, ...);

union a {
  int b;
  long c;
} e[] = {{0}, {8}};

int d = 0;
int *f = [1].b;
long *g = [1].c;

void h() {
  for (; d < 2; d++) {
*g = 0;
if (*f)
  return;
  }
  return;
}

int main() {
  h();
  printf("%d\n", d);
}

$ clang -O0 small.c; ./a.out
2
$ clang -Ofast small.c; ./a.out
0
$ clang -fsanitize=alignment small.c; ./a.out
2

I am not very sure whether there exist any undefined behavior in this code.
When I am using sanitize option, clang can not detect any undefined behavior in
this code.

-- 
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] Issue 4585 in oss-fuzz: llvm: Stack-overflow in EvaluateValue

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Status: New
Owner: 
CC: k...@google.com, masc...@google.com, jdevlieg...@apple.com,  
llvm-b...@lists.llvm.org, v...@apple.com
Labels: ClusterFuzz Stability-Memory-AddressSanitizer Reproducible  
Engine-libfuzzer Proj-llvm Reported-2017-12-11

Type: Bug

New issue 4585 by ClusterFuzz-External: llvm: Stack-overflow in  
EvaluateValue

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4585

Detailed report: https://oss-fuzz.com/testcase?key=4781498155663360

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7ffe9fdb6f78
Crash State:
  EvaluateValue

Sanitizer: address (ASAN)

Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=4781498155663360


Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


When you fix this bug, please
  * mention the fix revision(s).
  * state whether the bug was a short-lived regression or an old bug in any  
stable releases.

  * add any other useful information.
This information can help downstream consumers.

If you have questions for the OSS-Fuzz team, please file an issue at  
https://github.com/google/oss-fuzz/issues.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 35614] New: std::rotate can be order of magnitude faster, if it can allocate a buffer.

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35614

Bug ID: 35614
   Summary: std::rotate can be order of magnitude faster, if it
can allocate a buffer.
   Product: libc++
   Version: unspecified
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: denis.yaroshevs...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

Hi!

For one sided rotation you do optimize for one element on the stack:
https://github.com/llvm-mirror/libcxx/blob/master/include/algorithm#L2435

Actually this is a valid optimization for arbitrary number of elements and it
can give you an order of magnitude speed up.

Here is a very naive implementation with measurements:
http://quick-bench.com/KjyAe88UUBAjSmDAbUsbkt1mLxQ

Is it ok for std::rotate to do this?
I'm happy to create a patch but some guidance on the benchmark and restrictions
would be nice.

Best,
Dennis

-- 
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 35613] New: Optimizing std::search function

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35613

Bug ID: 35613
   Summary: Optimizing std::search function
   Product: libc++
   Version: unspecified
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

std::search can be optmized for Random Access Iterators by implementing inside
search algorithm like Boyer-Moore or Boyer-Moore-Horspool or Musser-Nishanov
algorithm (or smth faster). For Bidirectional iterators AFAIK Crochemore-Perrin
algorithm is very good.

AFAIK, now std::search use only naive search algortihm. Can be it improved?

P.S. I know about changes in C++17 new search algorithms, but i suggest use the
most efficient version for every type of iterators.

P.S.S Efficient algorithms you can find in Seqan library and in
Boost.Algorithm.

-- 
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] Issue 3817 in oss-fuzz: llvm/llvm-dwarfdump-fuzzer: ASSERT: result <= UINT32_MAX

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Top-Crash

Comment #2 on issue 3817 by ClusterFuzz-External:  
llvm/llvm-dwarfdump-fuzzer: ASSERT: result <= UINT32_MAX

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3817#c2

Testcase 4599700441268224 is a top crash on ClusterFuzz for linux platform.  
Please prioritize fixing this crash.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 35611] New: [meta] Missed fast-math optimizations

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35611

Bug ID: 35611
   Summary: [meta] Missed fast-math optimizations
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Windows NT
Status: NEW
  Keywords: performance
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: llvm-...@redking.me.uk
CC: llvm-bugs@lists.llvm.org, zamazan...@tut.by
Depends on: 4637, 35592, 35593, 35594, 35595, 35596, 35597, 35598,
35600, 35602, 35603, 35604, 35605, 35607, 21768, 35601


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4637
[Bug 4637] [fast-math] Some FP optimization opportunities missed
https://bugs.llvm.org/show_bug.cgi?id=21768
[Bug 21768] reassociate multiplies with fast-math
https://bugs.llvm.org/show_bug.cgi?id=35592
[Bug 35592] Missed optimization in math expression: squashing sqrt functions
https://bugs.llvm.org/show_bug.cgi?id=35593
[Bug 35593] Missed optimization in math expression: simplify calls std::pow
functions
https://bugs.llvm.org/show_bug.cgi?id=35594
[Bug 35594] Missed optimization in math expression: simplify calls std::exp
functions
https://bugs.llvm.org/show_bug.cgi?id=35595
[Bug 35595] Missed optimization in math expression: aggressive optimization
with std::pow
https://bugs.llvm.org/show_bug.cgi?id=35596
[Bug 35596] Missed optimization in math expression: sin(x) / cos(x) => tan(x)
https://bugs.llvm.org/show_bug.cgi?id=35597
[Bug 35597] Missed optimization in math expression: missing cube of the sum
formula
https://bugs.llvm.org/show_bug.cgi?id=35598
[Bug 35598] Missed optimization in math expression: sin^2(a) + cos^2(a) == 1
https://bugs.llvm.org/show_bug.cgi?id=35600
[Bug 35600] Missed optimization in math expression: sqrt(sqrt(a)) == pow(a,
1/4)
https://bugs.llvm.org/show_bug.cgi?id=35601
[Bug 35601] Missed optimization in math expression: sqrt(pow(a, 2.0)) == |a|
https://bugs.llvm.org/show_bug.cgi?id=35602
[Bug 35602] Missed optimization in math expression: tan(a) * cos(a) == sin(a)
https://bugs.llvm.org/show_bug.cgi?id=35603
[Bug 35603] Missed optimization in math expression: sin(asin(a)) == a
https://bugs.llvm.org/show_bug.cgi?id=35604
[Bug 35604] Missed optimization in math expression: sqrt(a) * sqrt(b) ==
sqrt(a*b)
https://bugs.llvm.org/show_bug.cgi?id=35605
[Bug 35605] Missed optimization in math expression: pow(cbrt(x), y) == pow(x, y
/ 3)
https://bugs.llvm.org/show_bug.cgi?id=35607
[Bug 35607] Missed optimization in math expression: max(min(a,b),max(a,b)) ==
max(a,b)
-- 
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 35609] clang -emit-llvm produces illegal output (not accepted by opt)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35609

Ralf Jung  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Ralf Jung  ---
Sorry for the noise; the problem is caused by godbolt trying to be smart and
"demangling" the IR.

-- 
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 35610] New: [X86] VPMOVM2* missing from skylake server scheduler model

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35610

Bug ID: 35610
   Summary: [X86] VPMOVM2* missing from skylake server scheduler
model
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: craig.top...@gmail.com
CC: llvm-bugs@lists.llvm.org

These instructions are missing from the skylake server model

+VPMOVM2BZ128rr, WriteMove, , , , , , , , 
+VPMOVM2BZ256rr, WriteMove, , , , , , , , 
+VPMOVM2BZrr, WriteMove, , , , , , , , 
+VPMOVM2DZ128rr, WriteMove, , , , , , , , 
+VPMOVM2DZ256rr, WriteMove, , , , , , , , 
+VPMOVM2DZrr, WriteMove, , , , , , , , 
+VPMOVM2QZ128rr, WriteMove, , , , , , , , 
+VPMOVM2QZ256rr, WriteMove, , , , , , , , 
+VPMOVM2QZrr, WriteMove, , , , , , , , 
+VPMOVM2WZ128rr, WriteMove, , , , , , , , 
+VPMOVM2WZ256rr, WriteMove, , , , , , , , 
+VPMOVM2WZrr, WriteMove, , , , , , , ,

-- 
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 35601] Missed optimization in math expression: sqrt(pow(a, 2.0)) == |a|

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35601

Sanjay Patel  changed:

   What|Removed |Added

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

--- Comment #5 from Sanjay Patel  ---
Should be fixed after:
https://reviews.llvm.org/rL320309
https://reviews.llvm.org/rL320310

Note that there's a sibling bug for pow(x, -1.0) that is still alive (I marked
it with a 'FIXME' comment in the source).

Also, we should be getting these folds with vector types too, but I suspect
we're missing a bunch of those cases.

-- 
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 35609] New: clang -emit-llvm produces illegal output (not accepted by opt)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35609

Bug ID: 35609
   Summary: clang -emit-llvm produces illegal output (not accepted
by opt)
   Product: clang
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: -New Bugs
  Assignee: unassignedclangb...@nondot.org
  Reporter: post+l...@ralfj.de
CC: llvm-bugs@lists.llvm.org

## Steps to reproduce:

Compile the following program with `clang -emit-llvm`:

```
void test(void (*f)()) {
}
```

Try to run the resulting IR through `opt`.

## Expected behavior:

`opt` should accept the IR generated by clang.

## Actual behavior:

`opt` rejects the IR as being invalid:
```
opt-6.0: cpp-6.ll:6:25: error: expected type
define void @test(void (*)())(void ()*) #0 !dbg !7 {
^
```

For reference, the IR is
```
; ModuleID =
'/tmp/compiler-explorer-compiler1171110-53-upsl4.lwnj7/example.cpp'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: noinline nounwind optnone uwtable
define void @test(void (*)())(void ()*) #0 !dbg !7 {
  %2 = alloca void ()*, align 8
  store void ()* %0, void ()** %2, align 8
  call void @llvm.dbg.declare(metadata void ()** %2, metadata !13, metadata
!DIExpression()), !dbg !14
  ret void, !dbg !15
}

; Function Attrs: nounwind readnone speculatable
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1

attributes #0 = { noinline nounwind optnone uwtable
"correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false"
"less-precise-fpmad"="false" "no-frame-pointer-elim"="true"
"no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false"
"no-jump-tables"="false" "no-nans-fp-math"="false"
"no-signed-zeros-fp-math"="false" "no-trapping-math"="false"
"stack-protector-buffer-size"="8" "target-cpu"="x86-64"
"target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false"
"use-soft-float"="false" }
attributes #1 = { nounwind readnone speculatable }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}

!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer:
"clang version 6.0.0 (trunk 320285)", isOptimized: false, runtimeVersion: 0,
emissionKind: FullDebug, enums: !2)
!1 = !DIFile(filename:
"/tmp/compiler-explorer-compiler1171110-53-upsl4.lwnj7/example.cpp", directory:
"/compiler-explorer")
!2 = !{}
!3 = !{i32 2, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = !{i32 1, !"wchar_size", i32 4}
!6 = !{!"clang version 6.0.0 (trunk 320285)"}
!7 = distinct !DISubprogram(name: "test", linkageName: "test(void (*)())",
scope: !1, file: !1, line: 1, type: !8, isLocal: false, isDefinition: true,
scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables:
!2)
!8 = !DISubroutineType(types: !9)
!9 = !{null, !10}
!10 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64)
!11 = !DISubroutineType(types: !12)
!12 = !{null}
!13 = !DILocalVariable(name: "f", arg: 1, scope: !7, file: !1, line: 1, type:
!10)
!14 = !DILocation(line: 1, column: 18, scope: !7)
!15 = !DILocation(line: 2, column: 1, scope: !7)
```

-- 
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 35608] New: [X86] Remove Schedule classes from models that don't use them

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35608

Bug ID: 35608
   Summary: [X86] Remove Schedule classes from models that don't
use them
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: llvm-...@redking.me.uk
CC: llvm-bugs@lists.llvm.org
Blocks: 32325

We currently have to specify all the InstrSchedModel classes even if the model
doesn't support it (e.g. WriteVarVecShift on pre-AVX2 machines). 

We should be able to not have to include these as long as the model's
UnsupportedFeatures list agrees. Naturally if we try to attach the model to a
cpu that does support that feature we should error out (e.g. X86ScheduleHaswell
being used on KNL).


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=32325
[Bug 32325] [META][X86] Improve implementation and use of X86 scheduler models
-- 
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 35607] New: Missed optimization in math expression: max(min(a, b), max(a, b)) == max(a, b)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35607

Bug ID: 35607
   Summary: Missed optimization in math expression:
max(min(a,b),max(a,b)) == max(a,b)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

int test(int a, int b)
{
return std::max(std::min(a,b), std::max(a,b));
}

generates this assembly:


test(int, int): # @test(int, int)
  cmp esi, edi
  mov eax, edi
  cmovle eax, esi
  cmp edi, esi
  cmovl edi, esi
  cmp eax, edi
  cmovge edi, eax
  mov eax, edi
  ret

gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math':


test(int, int):
cmp edi, esi
mov eax, edi
cmovl   eax, esi
ret


Helpful link:
https://github.com/gcc-mirror/gcc/blob/07b69d3f1cd3dd8ebb0af1fbff95914daee477d2/gcc/match.pd

-- 
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 35606] New: [X86] VZEROUPPER, VZEROALL missing from Sandybridge scheduler model

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35606

Bug ID: 35606
   Summary: [X86] VZEROUPPER, VZEROALL missing from Sandybridge
scheduler model
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: craig.top...@gmail.com
CC: llvm-bugs@lists.llvm.org

VZEROUPPER/VZEROALL has scheduling information for haswel,broadwell,skylake,
but not sandybrige

-- 
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 35605] New: Missed optimization in math expression: pow(cbrt(x), y) == pow(x, y / 3)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35605

Bug ID: 35605
   Summary: Missed optimization in math expression: pow(cbrt(x),
y) == pow(x, y / 3)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double test(double x, double y)
{
return pow(cbrt(x),y);
}

generates this assembly:


test(double, double): # @test(double, double)
  push rax
  vmovsd qword ptr [rsp], xmm1 # 8-byte Spill
  call cbrt
  vmovsd xmm1, qword ptr [rsp] # 8-byte Reload
  pop rax
  jmp pow # TAILCALL


As you can see, we can simplify it by calling pow(x, y/3). It should be faster.

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


[llvm-bugs] [Bug 35604] New: Missed optimization in math expression: sqrt(a) * sqrt(b) == sqrt(a*b)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35604

Bug ID: 35604
   Summary: Missed optimization in math expression: sqrt(a) *
sqrt(b) == sqrt(a*b)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:


#include 

double test(double a, double b)
{
return sqrt(a) * sqrt(b);
}


generates this assembly:


test(double, double, double): # @test(double, double, double)
  vsqrtsd xmm0, xmm0, xmm0
  vsqrtsd xmm1, xmm1, xmm1
  vmulsd xmm0, xmm1, xmm0
  ret


gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
this:


test(double, double, double):
vmulsd  xmm0, xmm0, xmm1
vsqrtsd xmm0, xmm0, xmm0
ret


Also if you will increase count of multiplication on sqrt(varible_name), gcc
continues generate more optimal code:


#include 

double test(double a, double b, double c)
{
return sqrt(a) * sqrt(b) * sqrt(c);
}


clang:


test(double, double, double): # @test(double, double, double)
  vsqrtsd xmm0, xmm0, xmm0
  vsqrtsd xmm1, xmm1, xmm1
  vmulsd xmm0, xmm1, xmm0
  vsqrtsd xmm1, xmm2, xmm2
  vmulsd xmm0, xmm0, xmm1
  ret



gcc:


test(double, double, double):
vmulsd  xmm2, xmm1, xmm2
vmulsd  xmm0, xmm2, xmm0
vsqrtsd xmm0, xmm0, xmm0
ret

-- 
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 35603] New: Missed optimization in math expression: sin(asin(a)) == a

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35603

Bug ID: 35603
   Summary: Missed optimization in math expression: sin(asin(a))
== a
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:


#include 

double test(double a)
{
return sin(asin(a));
}


generates this assembly:


test(double): # @test(double)
  push rax
  call __asin_finite
  pop rax
  jmp sin # TAILCALL


But sin(asin(a)) == a. So there is no reason to call anything.

-- 
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 35602] New: Missed optimization in math expression: tan(a) * cos(a) == sin(a)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35602

Bug ID: 35602
   Summary: Missed optimization in math expression: tan(a) *
cos(a) == sin(a)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:


#include 

double test(double a)
{
return tan(a) * cos(a);
}


generates this assembly:


test(double): # @test(double)
  sub rsp, 24
  vmovsd qword ptr [rsp + 8], xmm0 # 8-byte Spill
  call tan
  vmovsd qword ptr [rsp + 16], xmm0 # 8-byte Spill
  vmovsd xmm0, qword ptr [rsp + 8] # 8-byte Reload
  call cos
  vmulsd xmm0, xmm0, qword ptr [rsp + 16] # 8-byte Folded Reload
  add rsp, 24
  ret


gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
this:


test(double):
jmp sin

-- 
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 35546] [X86] Warn if a scheduling instregex fails to match any instruction

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35546

Simon Pilgrim  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|NEW |RESOLVED

--- Comment #1 from Simon Pilgrim  ---
Sorry, I got this wrong - an regexp that fails to match anything will report an
error.

-- 
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 32325] [META][X86] Improve implementation and use of X86 scheduler models

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=32325
Bug 32325 depends on bug 35546, which changed state.

Bug 35546 Summary: [X86] Warn if a scheduling instregex fails to match any 
instruction
https://bugs.llvm.org/show_bug.cgi?id=35546

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

-- 
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 35600] New: Missed optimization in math expression: sqrt(sqrt(a)) == pow(a, 1/4)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35600

Bug ID: 35600
   Summary: Missed optimization in math expression: sqrt(sqrt(a))
== pow(a, 1/4)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:


#include 

double test(double a)
{
return sqrt(sqrt(a));
}


generates this assembly:


test(double): # @test(double)
  vsqrtsd xmm0, xmm0, xmm0
  vsqrtsd xmm0, xmm0, xmm0
  ret


But there is formula: sqrt(sqrt(a)) == pow(a, 1/4). And it can be compiled in
faster way.

-- 
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 35598] New: Missed optimization in math expression: sin^2(a) + cos^2(a) == 1

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35598

Bug ID: 35598
   Summary: Missed optimization in math expression: sin^2(a) +
cos^2(a) == 1
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:


#include 

double test(double a)
{
return cos(a) * cos(a) + sin(a) * sin(a);
}


generates this assembly:


test(double): # @test(double)
  sub rsp, 24
  lea rdi, [rsp + 16]
  lea rsi, [rsp + 8]
  call sincos
  vmovsd xmm1, qword ptr [rsp + 8] # xmm1 = mem[0],zero
  vmovsd xmm0, qword ptr [rsp + 16] # xmm0 = mem[0],zero
  vmulsd xmm0, xmm0, xmm0
  vfmadd231sd xmm0, xmm1, xmm1
  add rsp, 24
  ret


But there is formula: sin^2(a) + cos^2(a) == 1. And it can be compiled in
faster way.

-- 
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 35597] New: Missed optimization in math expression: missing cube of the sum formula

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35597

Bug ID: 35597
   Summary: Missed optimization in math expression: missing cube
of the sum formula
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

double test(double a, double b)
{
return a*a*a + 3.0*a*a*b + 3.0*a*b*b + b*b*b;
}


generates this assembly:

.LCPI0_0:
  .quad 4613937818241073152 # double 3
test(double, double): # @test(double, double)
  vmulsd xmm2, xmm0, qword ptr [rip + .LCPI0_0]
  vmulsd xmm3, xmm0, xmm0
  vmulsd xmm4, xmm1, xmm1
  vaddsd xmm5, xmm2, xmm1
  vmulsd xmm4, xmm4, xmm5
  vfmadd231sd xmm3, xmm2, xmm1
  vfmadd213sd xmm0, xmm3, xmm4
  ret


But there is formula: a*a*a + 3.0*a*a*b + 3.0*a*b*b + b*b*b == (a + b)^3. And
it can be compiled in faster way.

-- 
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 35596] New: Missed optimization in math expression: sin(x) / cos(x) => tan(x)

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35596

Bug ID: 35596
   Summary: Missed optimization in math expression: sin(x) /
cos(x) => tan(x)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double test(double a)
{
return sin(a) / cos(a);
}


generates this assembly:


test(double): # @test(double)
  sub rsp, 24
  lea rdi, [rsp + 16]
  lea rsi, [rsp + 8]
  call sincos
  vmovsd xmm0, qword ptr [rsp + 16] # xmm0 = mem[0],zero
  vdivsd xmm0, xmm0, qword ptr [rsp + 8]
  add rsp, 24
  ret


GCC (trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
more optimal code:


test(double):
jmp tan

-- 
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 35595] New: Missed optimization in math expression: aggressive optimization with std::pow

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35595

Bug ID: 35595
   Summary: Missed optimization in math expression: aggressive
optimization with std::pow
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double test(double a, double x)
{
return pow(a, x) * a * a * a * a;
}

generates this assembly:


test(double, double): # @test(double, double)
  push rax
  vmovsd qword ptr [rsp], xmm0 # 8-byte Spill
  call pow
  vmovsd xmm1, qword ptr [rsp] # 8-byte Reload
  vmulsd xmm1, xmm1, xmm1
  vmulsd xmm1, xmm1, xmm1
  vmulsd xmm0, xmm1, xmm0
  pop rax
  ret


As you can see, me can simplify it by adding 4 to 'x' variable and after call
std::pow.

-- 
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 35594] New: Missed optimization in math expression: simplify calls std::exp functions

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35594

Bug ID: 35594
   Summary: Missed optimization in math expression: simplify calls
std::exp functions
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Common Code Generator Code
  Assignee: unassignedb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double f(double a, double b)
{
return std::exp(a) * std::exp(b);
}

generates this assembly:


f(double, double): # @f(double, double)
  sub rsp, 24
  vmovsd qword ptr [rsp + 16], xmm1 # 8-byte Spill
  call exp
  vmovsd qword ptr [rsp + 8], xmm0 # 8-byte Spill
  vmovsd xmm0, qword ptr [rsp + 16] # 8-byte Reload
  call exp
  vmulsd xmm0, xmm0, qword ptr [rsp + 8] # 8-byte Folded Reload
  add rsp, 24
  ret


GCC (trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
more optimal code:


f(double, double):
vaddsd  xmm0, xmm0, xmm1
jmp __exp_finite

-- 
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 35593] New: Missed optimization in math expression: simplify calls std::pow functions

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35593

Bug ID: 35593
   Summary: Missed optimization in math expression: simplify calls
std::pow functions
   Product: clang
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: LLVM Codegen
  Assignee: unassignedclangb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double f(double a, double b, double c)
{
return std::pow(a, b) * std::pow(a, c);
}

generates this assembly:


f(double, double, double): # @f(double, double, double)
  sub rsp, 24
  vmovsd qword ptr [rsp + 16], xmm2 # 8-byte Spill
  vmovsd qword ptr [rsp], xmm0 # 8-byte Spill
  call pow
  vmovsd qword ptr [rsp + 8], xmm0 # 8-byte Spill
  vmovsd xmm0, qword ptr [rsp] # 8-byte Reload
  vmovsd xmm1, qword ptr [rsp + 16] # 8-byte Reload
  call pow
  vmulsd xmm0, xmm0, qword ptr [rsp + 8] # 8-byte Folded Reload
  add rsp, 24
  ret


GCC (trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
more optimal code:


f(double, double, double):
vaddsd  xmm1, xmm1, xmm2
jmp __pow_finite

-- 
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 35592] New: Missed optimization in math expression: squashing sqrt functions

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35592

Bug ID: 35592
   Summary: Missed optimization in math expression: squashing sqrt
functions
   Product: clang
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: LLVM Codegen
  Assignee: unassignedclangb...@nondot.org
  Reporter: zamazan...@tut.by
CC: llvm-bugs@lists.llvm.org

clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:

#include 

double f(double a, double b, double c, double d)
{
return sqrt(a)*sqrt(b)*sqrt(c)*sqrt(d);
}

generates this assembly:


f(double, double, double, double): # @f(double, double, double, double)
  vsqrtsd xmm0, xmm0, xmm0
  vsqrtsd xmm1, xmm1, xmm1
  vmulsd xmm0, xmm1, xmm0
  vsqrtsd xmm1, xmm2, xmm2
  vsqrtsd xmm2, xmm3, xmm3
  vmulsd xmm1, xmm1, xmm2
  vmulsd xmm0, xmm0, xmm1
  ret


GCC (trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags generates
more optimal code:


f(double, double, double, double):
vmulsd  xmm0, xmm0, xmm1
vmulsd  xmm2, xmm2, xmm3
vmulsd  xmm2, xmm2, xmm0
vsqrtsd xmm0, xmm0, xmm2
ret

-- 
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] Issue 4575 in oss-fuzz: llvm/clang-fuzzer: ASSERT: DD && "queried property of class with no definition"

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Status: New
Owner: 
CC: k...@google.com, masc...@google.com, jdevlieg...@apple.com,  
llvm-b...@lists.llvm.org, v...@apple.com
Labels: ClusterFuzz Stability-Memory-AddressSanitizer Reproducible  
Engine-libfuzzer Proj-llvm Reported-2017-12-10

Type: Bug

New issue 4575 by ClusterFuzz-External: llvm/clang-fuzzer: ASSERT: DD  
&& "queried property of class with no definition"

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4575

Detailed report: https://oss-fuzz.com/testcase?key=5106944990773248

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: ASSERT
Crash Address:
Crash State:
  DD && "queried property of class with no definition"
  clang::CXXRecordDecl::data
  clang::Sema::FinalizeVarWithDestructor

Sanitizer: address (ASAN)

Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=5106944990773248


Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


When you fix this bug, please
  * mention the fix revision(s).
  * state whether the bug was a short-lived regression or an old bug in any  
stable releases.

  * add any other useful information.
This information can help downstream consumers.

If you have questions for the OSS-Fuzz team, please file an issue at  
https://github.com/google/oss-fuzz/issues.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 4294 in oss-fuzz: llvm/clang-fuzzer: Stack-overflow in IntExprEvaluator::VisitBinaryOperator

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #3 on issue 4294 by ClusterFuzz-External: llvm/clang-fuzzer:  
Stack-overflow in IntExprEvaluator::VisitBinaryOperator

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4294#c3

ClusterFuzz testcase 5694975858704384 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 4294 in oss-fuzz: llvm/clang-fuzzer: Stack-overflow in IntExprEvaluator::VisitBinaryOperator

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #2 on issue 4294 by ClusterFuzz-External: llvm/clang-fuzzer:  
Stack-overflow in IntExprEvaluator::VisitBinaryOperator

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4294#c2

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=5694975858704384

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7ffd73ef2fc0
Crash State:
  IntExprEvaluator::VisitBinaryOperator
  clang::StmtVisitorBase::Visit

  IntExprEvaluator::VisitCastExpr

Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=5694975858704384


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3368 in oss-fuzz: llvm: ASSERT: BT->isInteger()

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #6 on issue 3368 by ClusterFuzz-External: llvm: ASSERT:  
BT->isInteger()

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3368#c6

ClusterFuzz testcase 5181221011193856 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3238 in oss-fuzz: llvm: ASSERT: DD && "queried property of class with no definition"

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #9 on issue 3238 by ClusterFuzz-External: llvm: ASSERT: DD  
&& "queried property of class with no definition"

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3238#c9

ClusterFuzz testcase 4924632165515264 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3238 in oss-fuzz: llvm: ASSERT: DD && "queried property of class with no definition"

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #8 on issue 3238 by ClusterFuzz-External: llvm: ASSERT: DD  
&& "queried property of class with no definition"

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3238#c8

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=4924632165515264

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: ASSERT
Crash Address:
Crash State:
  DD && "queried property of class with no definition"
  clang::CXXRecordDecl::data
  DiagnoseUninitializedReference

Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=4924632165515264


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3302 in oss-fuzz: llvm: Stack-overflow in clang::Parser::ParseStatementOrDeclarationAfterAttributes

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #6 on issue 3302 by ClusterFuzz-External: llvm: Stack-overflow in  
clang::Parser::ParseStatementOrDeclarationAfterAttributes

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3302#c6

ClusterFuzz testcase 6463295525486592 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3358 in oss-fuzz: llvm: Stack-overflow in DiagnoseUninitializedReference

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #5 on issue 3358 by ClusterFuzz-External: llvm: Stack-overflow in  
DiagnoseUninitializedReference

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3358#c5

ClusterFuzz testcase 6556730458636288 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3302 in oss-fuzz: llvm: Stack-overflow in clang::Parser::ParseStatementOrDeclarationAfterAttributes

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #5 on issue 3302 by ClusterFuzz-External: llvm: Stack-overflow in  
clang::Parser::ParseStatementOrDeclarationAfterAttributes

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3302#c5

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=6463295525486592

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7ffc31973938
Crash State:
  clang::Parser::ParseStatementOrDeclarationAfterAttributes
  clang::Parser::ParseStatementOrDeclaration
  clang::Parser::ParseCompoundStatementBody

Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=6463295525486592


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3358 in oss-fuzz: llvm: Stack-overflow in DiagnoseUninitializedReference

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #4 on issue 3358 by ClusterFuzz-External: llvm: Stack-overflow in  
DiagnoseUninitializedReference

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3358#c4

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=6556730458636288

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7ffeea822ff8
Crash State:
  DiagnoseUninitializedReference

Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=6556730458636288


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 35591] New: [X86] Scheduler information missing for 16, 32, 64-bit move immediate

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35591

Bug ID: 35591
   Summary: [X86] Scheduler information missing for 16, 32, 64-bit
move immediate
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: craig.top...@gmail.com
CC: llvm-bugs@lists.llvm.org

MOV8mi and MOV8ri have scheduler information, but MOV32ri, MOV16ri, MOV32mi,
MOV16mi, MOV64ri32, etc. are missing.

-- 
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] Issue 3368 in oss-fuzz: llvm: ASSERT: BT->isInteger()

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #5 on issue 3368 by ClusterFuzz-External: llvm: ASSERT:  
BT->isInteger()

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3368#c5

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=5181221011193856

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: ASSERT
Crash Address:
Crash State:
  BT->isInteger()
  IntRange::forValueOfType
  DiagnoseOutOfRangeComparison

Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=5181221011193856


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3654 in oss-fuzz: llvm/clang-fuzzer: Stack-overflow in Evaluate

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs

Updates:
Labels: ClusterFuzz-Verified
Status: Verified

Comment #3 on issue 3654 by ClusterFuzz-External: llvm/clang-fuzzer:  
Stack-overflow in Evaluate

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3654#c3

ClusterFuzz testcase 4660153803603968 is verified as fixed, so closing  
issue as verified.


If this is incorrect, please file a bug on  
https://github.com/google/oss-fuzz/issues/new


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] Issue 3654 in oss-fuzz: llvm/clang-fuzzer: Stack-overflow in Evaluate

2017-12-10 Thread ClusterFuzz-External via monorail via llvm-bugs


Comment #2 on issue 3654 by ClusterFuzz-External: llvm/clang-fuzzer:  
Stack-overflow in Evaluate

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3654#c2

ClusterFuzz has detected this issue as fixed in range  
201712090607:201712100011.


Detailed report: https://oss-fuzz.com/testcase?key=4660153803603968

Project: llvm
Fuzzer: libFuzzer_llvm_clang-fuzzer
Fuzz target binary: clang-fuzzer
Job Type: libfuzzer_asan_llvm
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7fff61e8daa0
Crash State:
  Evaluate
  IntExprEvaluator::VisitUnaryOperator
  clang::StmtVisitorBase::Visit


Sanitizer: address (ASAN)

Fixed:  
https://oss-fuzz.com/revisions?job=libfuzzer_asan_llvm=201712090607:201712100011


Reproducer Testcase:  
https://oss-fuzz.com/download?testcase_id=4660153803603968


See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for  
more information.


If you suspect that the result above is incorrect, try re-doing that job on  
the test case report page.


--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
___
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[llvm-bugs] [Bug 35590] New: [X86] Scheduler information for IN missing from Sandybridge. OUT probably wrong

2017-12-10 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35590

Bug ID: 35590
   Summary: [X86] Scheduler information for IN missing from
Sandybridge. OUT probably wrong
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Backend: X86
  Assignee: unassignedb...@nondot.org
  Reporter: craig.top...@gmail.com
CC: llvm-bugs@lists.llvm.org

The scheduler model for Sandybrige is missing IN. The information for OUT on
sandybrige shows substantially fewer uops than later processors. This seems
suspect. OUT16 is also missing.

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