Skip to content
  1. Aug 05, 2017
    • Rafael Espindola's avatar
      Move File from SymbolBody to Symbol. · 6e93d054
      Rafael Espindola authored
      With this Symbol has the same size as before, but DefinedRegular goes
      from 72 to 64 bytes.
      
      I also find this a bit easier to read. There are fewer places
      initializing File for example.
      
      This has a small but measurable speed improvement on all tests (1%
      max).
      
      llvm-svn: 310142
      6e93d054
    • Sanjay Patel's avatar
      [InstCombine] narrow truncated add/sub/mul with constant · e12d734b
      Sanjay Patel authored
      Name: narrow_sub
        %sub = sub i32 C1, %x
        %r = trunc i32 %sub to i8
        =>  
        %xn = trunc i32 %x to i8
        %narrowC = trunc i32 C1 to i8
        %r = sub i8 %narrowC, %xn
       
      Name: narrow_add
        %add = add i32 %x, C1
        %r = trunc i32 %add to i8
        =>  
        %xn = trunc i32 %x to i8
        %narrowC = trunc i32 C1 to i8
        %r = add i8 %xn, %narrowC
        
      Name: narrow_mul
        %mul = mul i32 %x, C1
        %r = trunc i32 %mul to i8
        =>  
        %xn = trunc i32 %x to i8
        %narrowC = trunc i32 C1 to i8
        %r = mul i8 %xn, %narrowC
      
      
      http://rise4fun.com/Alive/QpS
      
      This doesn't solve PR34046 (failure to recognize rotate):
      https://bugs.llvm.org/show_bug.cgi?id=34046
      ...but it reduces an extra complication in the description examples 
      to a form that we can more easily match.
      
      llvm-svn: 310141
      e12d734b
    • Kamil Rytarowski's avatar
      Add NetBSD support in interception.h · d1dc704c
      Kamil Rytarowski authored
      Summary:
      Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
      
      Sponsored by <The NetBSD Foundation>
      
      Reviewers: joerg, kcc, filcab, vitalybuka
      
      Reviewed By: vitalybuka
      
      Subscribers: llvm-commits, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D36323
      
      llvm-svn: 310140
      d1dc704c
    • Kamil Rytarowski's avatar
      Add NetBSD support in sanitizer_syscall_generic.inc · 6c68c2e2
      Kamil Rytarowski authored
      Summary:
      This adds:
       - NetBSD specific aliases for renamed syscalls,
       - differentiate internal_syscall, internal_syscall64, internal_syscall_ptr as there are various types of syscalls on NetBSD.
      
      Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
      
      Sponsored by <The NetBSD Foundation>
      
      Reviewers: joerg, kcc, vitalybuka, filcab
      
      Reviewed By: vitalybuka
      
      Subscribers: kubamracek, llvm-commits, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D36316
      
      llvm-svn: 310139
      6c68c2e2
  2. Aug 04, 2017
Loading