1. Dec 10, 2018
  2. Dec 09, 2018
    • Nico Weber's avatar
      Remove unneeded dependency from lib/Target/X86/Utils/ to lib/IR (aka Core). · b9616619
      Nico Weber authored
      The dependency was added in r213995 in response to r213986 which did make
      X86/Utils depend on IR, but r256680 later removed that dependency again.
      
      llvm-svn: 348724
      b9616619
    • Sanjay Patel's avatar
      [x86] regenerate test checks; NFC · 099beb25
      Sanjay Patel authored
      llvm-svn: 348723
      099beb25
    • Sanjay Patel's avatar
      [x86] don't try to convert add with undef operands to LEA · 19bc8502
      Sanjay Patel authored
      The existing code tries to handle an undef operand while transforming an add to an LEA, 
      but it's incomplete because we will crash on the i16 test with the debug output shown below. 
      It's better to just give up instead. Really, GlobalIsel should have folded these before we 
      could get into trouble.
      
      # Machine code for function add_undef_i16: NoPHIs, TracksLiveness, Legalized, RegBankSelected, Selected
      
      bb.0 (%ir-block.0):
        liveins: $edi
        %1:gr32 = COPY killed $edi
        %0:gr16 = COPY %1.sub_16bit:gr32
        %5:gr64_nosp = IMPLICIT_DEF
        %5.sub_16bit:gr64_nosp = COPY %0:gr16
        %6:gr64_nosp = IMPLICIT_DEF
        %6.sub_16bit:gr64_nosp = COPY %2:gr16
        %4:gr32 = LEA64_32r killed %5:gr64_nosp, 1, killed %6:gr64_nosp, 0, $noreg
        %3:gr16 = COPY killed %4.sub_16bit:gr32
        $ax = COPY killed %3:gr16
        RET 0, implicit killed $ax
      
      # End machine code for function add_undef_i16.
      
      *** Bad machine code: Reading virtual register without a def ***
      - function:    add_undef_i16
      - basic block: %bb.0  (0x7fe6cd83d940)
      - instruction: %6.sub_16bit:gr64_nosp = COPY %2:gr16
      - operand 1:   %2:gr16
      LLVM ERROR: Found 1 machine code errors.
      
      Differential Revision: https://reviews.llvm.org/D54710
      
      llvm-svn: 348722
      19bc8502
    • Simon Pilgrim's avatar
      [X86] Extend pfm counter coverage for llvm-exegesis · e9d8275e
      Simon Pilgrim authored
      Extension to rL348617, turns out llvm-exegesis doesn't need to match the perf counter name against a scheduler model resource name - so I've added a few more counters that I could find in the libpfm4 source code (and fix a typo in the knl/knm retired_uops counter - which uses 'all' instead of 'any').
      
      llvm-svn: 348721
      e9d8275e
    • Stephen Kelly's avatar
      NFC: Rename TemplateDecl dump utilities · 2413638a
      Stephen Kelly authored
      There is a clang::TemplateDecl AST type, so a method called
      VisitTemplateDecl looks like it should 'override' the method from the
      base visitor, but it does not because of the extra parameters it takes.
      
      In reality, these methods are utilities, so name them like utilities.
      
      llvm-svn: 348720
      2413638a
    • Stephen Kelly's avatar
      NFC: Move dump of individual comment nodes to NodeDumper · e26a88aa
      Stephen Kelly authored
      Reviewers: aaron.ballman
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D55190
      
      llvm-svn: 348719
      e26a88aa
    • Stephen Kelly's avatar
      Revert "Introduce optional labels to dumpStmt" · 50a29bd4
      Stephen Kelly authored
      This reverts commit 933402caa09963792058198578522a95f013c69c.
      
      llvm-svn: 348718
      50a29bd4
    • Stephen Kelly's avatar
      Introduce optional labels to dumpStmt · 3283535d
      Stephen Kelly authored
      If the label is present, it is added as a child, with the statement a
      child of the label.  This preserves behavior of the InitListExpr dump
      output.
      
      llvm-svn: 348717
      3283535d
    • Stephen Kelly's avatar
      Inline hasNodes into only caller · 39271a19
      Stephen Kelly authored
      It is easier to refactor with fewer utility methods.
      
      llvm-svn: 348716
      39271a19
    • Stephen Kelly's avatar
      Inline dumpFullComment into callers · 570b2976
      Stephen Kelly authored
      It causes confusion over whether it or dumpComment is the more
      important. It is easier to refactor with fewer utility methods.
      
      llvm-svn: 348715
      570b2976
    • Stephen Kelly's avatar
      Re-order content from InitListExpr · 7ec37b2b
      Stephen Kelly authored
      Summary:
      This causes no change in the output of ast-dump-stmt.cpp due to the way
      child nodes are printed with a delay.
      
      Reviewers: aaron.ballman
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D55398
      
      llvm-svn: 348714
      7ec37b2b
    • Stephen Kelly's avatar
      Fix InitListExpr test · 2ac0c371
      Stephen Kelly authored
      Wrong case of Check meant this has no effect.
      
      llvm-svn: 348713
      2ac0c371
    • Nikita Popov's avatar
      [X86] Add test for PR39926; NFC · 31924494
      Nikita Popov authored
      The test file shows a case where the avoid store forwarding block
      pass misses to copy a range (-1..1) when the load displacement
      changes sign.
      
      Baseline test for D55485.
      
      llvm-svn: 348712
      31924494