[llvm-bugs] [Bug 36308] ELF tests randomly failing on lld-x86_64-freebsd

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=36308

Fangrui Song  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 CC||i...@maskray.me
 Status|NEW |RESOLVED

--- Comment #1 from Fangrui Song  ---
It is one year now.. And the bot looks pretty good.
http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/

-- 
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 38918] lld crashes (nullptr derference) when linking kernel with --icf=all

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=38918

Fangrui Song  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
 CC||i...@maskray.me

--- Comment #3 from Fangrui Song  ---
This does not reproduce now (but not sure which commit fixed it).

-- 
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 23214] [META] Using LLD as FreeBSD's system linker

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=23214
Bug 23214 depends on bug 31762, which changed state.

Bug 31762 Summary: 3.9.1's lld and powerpc64 for -pie use: can't create dynamic 
relocation R_PPC64_REL24 against readonly segment
https://bugs.llvm.org/show_bug.cgi?id=31762

   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 25780] [META] Using Clang as the FreeBSD/ppc system compiler

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=25780
Bug 25780 depends on bug 31762, which changed state.

Bug 31762 Summary: 3.9.1's lld and powerpc64 for -pie use: can't create dynamic 
relocation R_PPC64_REL24 against readonly segment
https://bugs.llvm.org/show_bug.cgi?id=31762

   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 31762] 3.9.1's lld and powerpc64 for -pie use: can't create dynamic relocation R_PPC64_REL24 against readonly segment

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=31762

Fangrui Song  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
 CC||i...@maskray.me

--- Comment #1 from Fangrui Song  ---
This should have been fixed when R_PPC64_REL24 (R_PPC_CALL_PLT) was added to
ELF/Arch/PPC64.cpp getRelExpr.

-- 
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 37590] [PPC64] Support the 4 TLS models.

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=37590

Fangrui Song  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||i...@maskray.me

--- Comment #5 from Fangrui Song  ---
Should have been 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 35389] Support ppc64le

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=35389
Bug 35389 depends on bug 37590, which changed state.

Bug 37590 Summary: [PPC64] Support the 4 TLS models.
https://bugs.llvm.org/show_bug.cgi?id=37590

   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 40857] New: Wrong debug info generated at -O2 (-O0 is correct)

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40857

Bug ID: 40857
   Summary: Wrong debug info generated at -O2 (-O0 is correct)
   Product: libraries
   Version: trunk
  Hardware: PC
OS: All
Status: NEW
  Keywords: wrong-debug
  Severity: enhancement
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: dav...@freebsd.org
CC: apra...@apple.com, cmt...@google.com,
david.stenb...@ericsson.com, dblai...@gmail.com,
echri...@gmail.com, florian_h...@apple.com,
jeremy.morse.l...@gmail.com, llvm-bugs@lists.llvm.org,
v...@apple.com

$ cat outer.c
void optimize_me_not() {}

$ cat 7.c
int a[6];
int b;
int main() {
  int i, c = 8;
  for (; c; c--)
b = b >> 5;
  i = 0;
  for (; i < 7; i++)
for (; c < 2; c++)
  b = b & 4095 ^ a[b & 255];
  i = 0;
  for (; i < 5; i++)
;
  b = b >> 8 ^ 5;
  optimize_me_not();
}

### -O2

(lldb) r
Process 16600 launched: '/home/davide/finished_reducing/a.out' (x86_64)
Process 16600 stopped
* thread #1, name = 'a.out', stop reason = breakpoint 1.1
frame #0: 0x004004be a.out`main at 7.c:15:3
   12 for (; i < 5; i++)
   13   ;
   14 b = b >> 8 ^ 5;
-> 15 optimize_me_not();
   16   }
(lldb) frame var
(int) c = 0
(int) i = 0


### -O0

Process 18140 launched: '/home/davide/finished_reducing/a.out' (x86_64)
Process 18140 stopped
* thread #1, name = 'a.out', stop reason = breakpoint 1.1
frame #0: 0x00400562 a.out`main at 7.c:15:3
   12 for (; i < 5; i++)
   13   ;
   14 b = b >> 8 ^ 5;
-> 15 optimize_me_not();
   16   }
(lldb) frame var
(int) i = 5
(int) c = 2

-- 
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 39999] Print symbol section in the "Section" column for llvm-nm sysv output format

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=3

Sunil Srivastava  changed:

   What|Removed |Added

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

--- Comment #2 from Sunil Srivastava  ---
Fixed by r354833

-- 
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 39998] Print symbol type in the "Type" column for llvm-nm sysv output format

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=39998

Sunil Srivastava  changed:

   What|Removed |Added

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

--- Comment #3 from Sunil Srivastava  ---
Fixed by r354833

-- 
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 40856] New: Dia2dump dies with stackoverflow on pdbs generated by lld r351376

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40856

Bug ID: 40856
   Summary: Dia2dump dies with stackoverflow on pdbs generated by
lld r351376
   Product: lld
   Version: unspecified
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: COFF
  Assignee: unassignedb...@nondot.org
  Reporter: santag...@gmail.com
CC: llvm-bugs@lists.llvm.org

Hi,

I used lld snapshot r351376 to link itself and it produced a pdb that when
enumerating all symbols crashes dia2dump. It goes over some of the symbols and
then dies in a recursion:

msdia140.dll!getPtrData()   Unknown
msdia140.dll!TypeDispatcher::TypeDispatch(unsigned char *,class
TypeDispatcher *)   Unknown
msdia140.dll!GetData::getTypeData(unsigned long,struct SymRowImage
*,unsigned long *)   Unknown
msdia140.dll!CTypeIdTrav::get(class CSymRow &)  Unknown
msdia140.dll!CDiaSession::ReturnOneObject(class CDiaSymbol *,class CTraversal
*,struct IDiaSymbol * *) Unknown
msdia140.dll!CDiaSession::getSymbol(struct SYMBOL_ID_INTERNAL *,struct
IDiaSymbol * *)  Unknown
msdia140.dll!CDiaSymbol::get_type(struct IDiaSymbol * *)Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown
msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)
Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown
msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)
Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown
msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)
Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown
msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)
Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown
msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)
Unknown
msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)  Unknown

Here is a link to the generated binary and pdb:
https://we.tl/t-56BBkXpEhN

-- 
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 40855] New: ExceptionDataRecord::EpilogueCount returns wrong amount in some cases on aarch64

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40855

Bug ID: 40855
   Summary: ExceptionDataRecord::EpilogueCount returns wrong
amount in some cases on aarch64
   Product: libraries
   Version: trunk
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Support Libraries
  Assignee: unassignedb...@nondot.org
  Reporter: froy...@gmail.com
CC: dma...@mozilla.com, llvm-bugs@lists.llvm.org,
mar...@martin.st

I have an aarch64 executable with a function that llvm-readelf claims has 123
(!) epilogue scopes.  This is fine as far as it goes, but 123 is wrong, because
this code:

https://github.com/llvm-mirror/llvm/blob/f25266101e3a715fb377960a7cf99c4f9ec2f37e/include/llvm/Support/ARMWinEH.h#L385-L392

is wrong: in the HeaderWords() != 1 case, we're trying to extract a 16-bit
field, but the return type of the function truncates that 16-bit quantity to 8
bits.  The actual amount is 891 (!), which is similarly unbelievable, but there
you go.

-- 
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 40325] [Mips] FastISel fails to mask branch conditions

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40325

Nikita Popov  changed:

   What|Removed |Added

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

--- Comment #2 from Nikita Popov  ---
Fixed by https://reviews.llvm.org/rL354808.

-- 
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 40853] New: Enable overflow intrinsic vectorization support

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40853

Bug ID: 40853
   Summary: Enable overflow intrinsic vectorization support
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Scalar Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: llvm-...@redking.me.uk
CC: a.bat...@hotmail.com, florian_h...@apple.com,
llvm-bugs@lists.llvm.org, nikita@gmail.com

Now that vector versions of the *.overflow intrinsics are supported we need to
add vectorization support.

For instance, in SLP BoUpSLP::canMapToVector can't handle the return struct
type:

{i32, i1} @llvm.sadd.with.overflow.i32(i32 %a, i32 %b)

to

{<4 x i32>, <4 x i1>} @llvm.sadd.with.overflow.v4i32(<4 x i32> %a, <4 x i32>
%b)

The LV has similar issues.

-- 
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] Issue 11748 in oss-fuzz: llvm/llvm-opt-fuzzer--x86_64-indvars: ASSERT: Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11748 by sheriff...@chromium.org:  
llvm/llvm-opt-fuzzer--x86_64-indvars: ASSERT: Ty->isSized() && "Cannot  
getTypeInfo() on a type that is unsized!"

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11733 in oss-fuzz: llvm/clang-fuzzer: Stack-overflow in AnalyzeImplicitConversions

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #3 on issue 11733 by sheriff...@chromium.org: llvm/clang-fuzzer:  
Stack-overflow in AnalyzeImplicitConversions

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11712 in oss-fuzz: llvm/llvm-isel-fuzzer--aarch64-gisel: Null-dereference READ in selectCopy

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #3 on issue 11712 by sheriff...@chromium.org:  
llvm/llvm-isel-fuzzer--aarch64-gisel: Null-dereference READ in selectCopy

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11669 in oss-fuzz: llvm/llvm-isel-fuzzer--aarch64-O2: Abrt in llvm::llvm_unreachable_internal

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11669 by sheriff...@chromium.org:  
llvm/llvm-isel-fuzzer--aarch64-O2: Abrt in llvm::llvm_unreachable_internal

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11652 in oss-fuzz: llvm/llvm-isel-fuzzer--aarch64-O2: ASSERT: &*BB.begin() == PadInst && "WinEHPrepare failed to demote PHIs"

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11652 by sheriff...@chromium.org:  
llvm/llvm-isel-fuzzer--aarch64-O2: ASSERT: &*BB.begin() == PadInst  
&& "WinEHPrepare failed to demote PHIs"

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11654 in oss-fuzz: llvm/llvm-isel-fuzzer--aarch64-O2: ASSERT: !I.hasOperandBundlesOtherThan( {LLVMContext::OB_deopt, LLVMContext::OB_funclet})

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11654 by sheriff...@chromium.org:  
llvm/llvm-isel-fuzzer--aarch64-O2: ASSERT: !I.hasOperandBundlesOtherThan(  
{LLVMContext::OB_deopt, LLVMContext::OB_funclet})

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11665 in oss-fuzz: llvm/clang-fuzzer: ASSERT: ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11665 by sheriff...@chromium.org: llvm/clang-fuzzer:  
ASSERT: ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is  
not valid"

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] Issue 11649 in oss-fuzz: llvm/clang-fuzzer: ASSERT: Access != AS_none && "Access specifier is AS_none inside a record decl"

2019-02-25 Thread sheriff… via monorail via llvm-bugs

Updates:
Labels: Deadline-Approaching

Comment #4 on issue 11649 by sheriff...@chromium.org: llvm/clang-fuzzer:  
ASSERT: Access != AS_none && "Access specifier is AS_none inside a record  
decl"

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

This bug is approaching its deadline for being fixed, and will be  
automatically derestricted within 7 days. If a fix is planned within 2  
weeks after the deadline has passed, a grace extension can be granted.


- Your friendly Sheriffbot

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


[llvm-bugs] [Bug 36053] clang cannot find cross-compiled compiler-rt files (e.g. address sanitizer).

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=36053

Pawel Sikora  changed:

   What|Removed |Added

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

--- Comment #1 from Pawel Sikora  ---
works fine with current clang-7/8.

-- 
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 36285] [clangd] Find definitions does not understand template parameters

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=36285

Kadir Cetinkaya  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED

-- 
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 40851] Inline jump tables

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40851

Anton Korobeynikov  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID
 CC||an...@korobeynikov.info

--- Comment #1 from Anton Korobeynikov  ---
arr is externally visible therefore its contents could be changed. If you'd
change it to "static const", then compiler inlines the function.

-- 
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 40851] New: Inline jump tables

2019-02-25 Thread via llvm-bugs
https://bugs.llvm.org/show_bug.cgi?id=40851

Bug ID: 40851
   Summary: Inline jump tables
   Product: libraries
   Version: trunk
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: Interprocedural Optimizations
  Assignee: unassignedb...@nondot.org
  Reporter: david.bolvan...@gmail.com
CC: llvm-bugs@lists.llvm.org

int square(int x) {
return x*x;
}

int add(int x) {
return x + x;
}

typedef int (*p) (int);

p arr[4] = {square, add};

int test(int x) {
int res = arr[1](x);
return res;
}

Expected:
test(int):
lea eax, [rdi+rdi]
ret

Currently:
test(int):
jmp [QWORD PTR arr[rip+8]]



If the index to the jump table isn't a constant, should not be better to expand
"if else" chain like:
if (x==1)  arr[1](x);
else if (x==2)  arr[2](x);

..and then take an opportunity to inline functions?

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