1. Aug 12, 2019
  2. Aug 11, 2019
  3. Aug 10, 2019
    • Sanjay Patel's avatar
      [Reassociate] try harder to convert negative FP constants to positive · 21c15ef3
      Sanjay Patel authored
      This is an extension of a transform that tries to produce positive floating-point
      constants to improve canonicalization (and hopefully lead to more reassociation
      and CSE).
      
      The original patches were:
      D4904
      D5363 (rL221721)
      
      But as the test diffs show, these were limited to basic patterns by walking from
      an instruction to its single user rather than recursively moving up the def-use
      sequence. No fast-math is required here because we're only rearranging implicit
      FP negations in intermediate ops.
      
      A motivating bug is:
      https://bugs.llvm.org/show_bug.cgi?id=32939
      
      Differential Revision: https://reviews.llvm.org/D65954
      
      llvm-svn: 368512
      21c15ef3
    • Raphael Isemann's avatar
      [lldb] Fix dynamic_cast by no longer failing on variable without metadata · b448d1bf
      Raphael Isemann authored
      Summary:
      Our IR rewriting infrastructure currently fails when it encounters a variable which has no metadata associated.
      This causes dynamic_cast to fail as in this case IRForTarget considers the type info pointers ('@_ZTI...') to be
      variables without associated metadata. As there are no variables for these internal variables, this is actually
      not an error and dynamic_cast would work fine if we didn't throw this error.
      
      This patch fixes this by removing this diagnostics code. In case we would actually hit a variable that has no
      metadata (but is supposed to have), we still have the error in the expression log so this shouldn't make it
      harder to diagnose any missing metadata errors.
      
      This patch should fix dynamic_cast and also adds a bunch of test coverage to that language feature.
      
      Fixes rdar://10813639
      
      Reviewers: davide, labath
      
      Reviewed By: labath
      
      Subscribers: friss, labath, abidh, lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D65932
      
      llvm-svn: 368511
      b448d1bf
    • Raphael Isemann's avatar
      [clang] Fixed x86 cpuid NSC signature · c4b5b66a
      Raphael Isemann authored
      Summary:
      The signature "Geode by NSC" for NSC vendor is wrong.
      In lib/Headers/cpuid.h, signature_NSC_edx and signature_NSC_ecx constants are inverted (cpuid signature order is ebx # edx # ecx).
      
      Reviewers: teemperor, rsmith, craig.topper
      
      Reviewed By: teemperor, craig.topper
      
      Subscribers: craig.topper, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D65978
      
      llvm-svn: 368510
      c4b5b66a
    • Kang Zhang's avatar
      [CodeGen] Do the Simple Early Return in block-placement pass to optimize the blocks · 36cd84bd
      Kang Zhang authored
      Summary:
      
      In `block-placement` pass, it will create some patterns for unconditional we can do the simple early retrun.
      But the `early-ret` pass is before `block-placement`, we don't want to run it again.
      This patch is to do the simple early return to optimize the blocks at the last of `block-placement`.
      
      Reviewed By: efriedma
      
      Differential Revision: https://reviews.llvm.org/D63972
      
      llvm-svn: 368509
      36cd84bd
    • Kristina Brooks's avatar
      [modulemap] Add AArch64SVEACLETypes.def · 3ab587df
      Kristina Brooks authored
      Update modulemap with a new textual header.
      
      llvm-svn: 368508
      3ab587df
    • Owen Pan's avatar
      [clang-format] Add SpaceInEmptyBlock option for WebKit · db4ad360
      Owen Pan authored
      See PR40840
      
      Differential Revision: https://reviews.llvm.org/D65925
      
      llvm-svn: 368507
      db4ad360
    • Craig Topper's avatar
      [X86] Match the IR pattern form movmsk on SSE1 only targets where v4i32 isn't legal · 74c43a22
      Craig Topper authored
      Summary:
      This patch adds a special DAG combine for SSE1 to recognize the IR pattern InstCombine gives us for movmsk. This only does the recognition for a few cases where its obvious the input won't be scalarized resulting in building a vector just do to the movmsk. I've made it separate from our existing matching for movmsk since that's called in multiple places and I didn't spend time to see if the other callers would make sense here. Plus the restrictions and additional checks would complicate that.
      
      This fixes the case from PR42870. Buts its probably still broken the presence of logic ops feeding the movmsk pattern which would further hide the v4f32 type.
      
      Reviewers: spatel, RKSimon, xbolva00
      
      Subscribers: hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D65689
      
      llvm-svn: 368506
      74c43a22