1. Jul 15, 2015
    • Krzysztof Parzyszek's avatar
      Fix Windows build: replace __func__ with LLVM_FUNCTION_NAME · 2e828836
      Krzysztof Parzyszek authored
      llvm-svn: 242192
      2e828836
    • Bruno Cardoso Lopes's avatar
      [MMX] Use the appropriate instructions for GR64 <-> VR64 copies. · 9e6dea1d
      Bruno Cardoso Lopes authored
      MOVSDto64rr and MOV64toSDrr are defined to convert between FR64 (%xmm)
      <-> GR64 registers, not VR64 (%mm) <-> GR64. This is wrong.
      
      I found this by inspection and could not find a suitable testcase for it
      since (1) we don't handle MMX bitcasts in Peephole optimizer as to
      generate COPYs that (2) could be expanded back to the appropriate x86
      instruction in ExpandPostRA.
      
      Switch to use the appropriate instructions: MMX_MOVD64from64rr and
      MMX_MOVD64to64rr here.
      
      llvm-svn: 242191
      9e6dea1d
    • David Majnemer's avatar
      [Sema] Emit a better diagnostic when variable redeclarations disagree · 38a50c0a
      David Majnemer authored
      We referred to all declaration in definitions in our diagnostic messages
      which is can be inaccurate.  Instead, classify the declaration and emit
      an appropriate diagnostic for the new declaration and an appropriate
      note pointing to the old one.
      
      This fixes PR24116.
      
      llvm-svn: 242190
      38a50c0a
    • Marshall Clow's avatar
      Mark LWG2308 as complete; fix link. No code change necessary. · f69606b1
      Marshall Clow authored
      llvm-svn: 242189
      f69606b1
    • Hal Finkel's avatar
      [PowerPC] Fix the PPCInstrInfo::getInstrLatency implementation · 8acae527
      Hal Finkel authored
      PowerPC uses itineraries to describe processor pipelines (and dispatch-group
      restrictions for P7/P8 cores). Unfortunately, the target-independent
      implementation of TII.getInstrLatency calls ItinData->getStageLatency, and that
      looks for the largest cycle count in the pipeline for any given instruction.
      This, however, yields the wrong answer for the PPC itineraries, because we
      don't encode the full pipeline. Because the functional units are fully
      pipelined, we only model the initial stages (there are no relevant hazards in
      the later stages to model), and so the technique employed by getStageLatency
      does not really work. Instead, we should take the maximum output operand
      latency, and that's what PPCInstrInfo::getInstrLatency now does.
      
      This caused some test-case churn, including two unfortunate side effects.
      First, the new arrangement of copies we get from function parameters now
      sometimes blocks VSX FMA mutation (a FIXME has been added to the code and the
      test cases), and we have one significant test-suite regression:
      
      SingleSource/Benchmarks/BenchmarkGame/spectral-norm
      	56.4185% +/- 18.9398%
      
      In this benchmark we have a loop with a vectorized FP divide, and it with the
      new scheduling both divides end up in the same dispatch group (which in this
      case seems to cause a problem, although why is not exactly clear). The grouping
      structure is hard to predict from the bottom of the loop, and there may not be
      much we can do to fix this.
      
      Very few other test-suite performance effects were really significant, but
      almost all weakly favor this change. However, in light of the issues
      highlighted above, I've left the old behavior available via a
      command-line flag.
      
      llvm-svn: 242188
      8acae527
    • Dan Liew's avatar
      Fix several issues with the test-release.sh script · 7fa38a53
      Dan Liew authored
      * Use the default install prefix (/usr/local) and use DESTDIR instead to
        set a temporary install location for tarballing. This is the correct
        way to package binary releases (otherwise the temporary install path
        ends up in files in the binary release).
      * Remove ``-disable-clang`` option. It did not work correctly
        (tarballing assumed phase 3 was run) and when doing a release
        we should always be doing a three-phased build and test.
      
      Note: Technically we should only be using DESTDIR for the third phase
      and use --prefix for the first and second phase because we run the built
      clang from phase 1 and 2 (and in general an application's behaviour
      may depend on the install prefix). However in the case of clang it
      seems to not care what the install prefix was so to simplify the script
      we use DESTDIR for all three stages.
      
      llvm-svn: 242187
      7fa38a53
    • Krzysztof Parzyszek's avatar
      [Hexagon] Generate instructions for operations on predicate registers · 75874470
      Krzysztof Parzyszek authored
      Convert logical operations on general-purpose registers to the correspon-
      ding operations on predicate registers.
      
      llvm-svn: 242186
      75874470
    • Keno Fischer's avatar
      [CodeGen] Force emission of personality directive if explicitly specified · aff703a2
      Keno Fischer authored
      Summary:
      Before this change, personality directives were not emitted
      if there was no invoke left in the function (of course until
      recently this also meant that we couldn't know what
      the personality actually was). This patch forces personality directives
      to still be emitted, unless it is known to be a noop in the absence of
      invokes, or the user explicitly specified `nounwind` (and not
      `uwtable`) on the function.
      
      Reviewers: majnemer, rnk
      
      Subscribers: rnk, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D10884
      
      llvm-svn: 242185
      aff703a2
    • Jason Molenda's avatar
    • Oleksiy Vyalov's avatar
    • Oleksiy Vyalov's avatar
      df62ed3f
    • Artem Belevich's avatar
      Run cuda options test only with specific target. · b73313de
      Artem Belevich authored
      For now it's only x86_64-linux-gnu.
      
      llvm-svn: 242181
      b73313de
    • Richard Smith's avatar
    • Richard Smith's avatar
      Add support for on-disk hash table lookup with a known hash, for situations... · 86a6f56c
      Richard Smith authored
      Add support for on-disk hash table lookup with a known hash, for situations where the same key will be looked up in multiple tables.
      
      llvm-svn: 242179
      86a6f56c
    • Yaron Keren's avatar
      Teach config.guess that MSYS exists. · 52511aa3
      Yaron Keren authored
      We might not want to upgrade config.guess to the current
      version due to the license change from GPL2 to GPL3.
      
      llvm-svn: 242178
      52511aa3
    • Matt Arsenault's avatar
      AMDGPU: Avoid using 64-bit shift for i64 (shl x, 32) · 24692118
      Matt Arsenault authored
      This can be done only with moves which theoretically
      will optimize better later.
      
      Although this transform increases the instruction count,
      it should be code size / cycle count neutral in the worst
      VALU case. It also seems to slightly improve a couple
      of testcases due to other DAG combines this exposes.
      
      This is probably slightly worse for the SALU case, so
      it might be better to handle this during moveToVALU,
      although then you lose some simplifications like
      the load width reducing in the simple testcase.
      
      llvm-svn: 242177
      24692118
    • Reid Kleckner's avatar
      [clang-cl] Disable C++ exceptions a different way · 5c6efed3
      Reid Kleckner authored
      Rather than making -fexceptions a core option that enables C++ EH in
      clang-cl, users can use the '-Xclang -fexceptions -Xclang
      -fcxx-exceptions' flag set. We weren't going to expose -fexceptions in
      clang-cl in the long run, so this way we don't add and then remove a
      flag.
      
      llvm-svn: 242176
      5c6efed3
    • Sunil Srivastava's avatar
      Fixed 22941: Integer template parameter as immediate 'I' expectes an integer constant · 780e5018
      Sunil Srivastava authored
      Basically fixed premature testing of integer constraints during template parsing
      Reviewed at http://reviews.llvm.org/D10452
      
      llvm-svn: 242175
      780e5018
    • Matt Arsenault's avatar
      AMDGPU/SI: Fix read2 merging into a super register. · 84db5d97
      Matt Arsenault authored
      If the read2 produced was supposed to be writing into a
      super register, it would use the wrong subregister indices.
      Fix this by inserting copies, so we only ever write to a vreg_64.
      Run the register coalescer again to clean this up, although this
      isn't ideal and often does result in an extra move.
      
      Also remove the assert that offset1 > offset0.
      
      There isn't a real reason to not allow this other than a minor
      convenience in the compiler, and it doesn't seem worth the effort
      of avoiding it.
      
      llvm-svn: 242174
      84db5d97
    • Matthias Braun's avatar
      MachineRegisterInfo: Remove UsedPhysReg infrastructure · 9912bb81
      Matthias Braun authored
      We have a detailed def/use lists for every physical register in
      MachineRegisterInfo anyway, so there is little use in maintaining an
      additional bitset of which ones are used.
      
      Removing it frees us from extra book keeping. This simplifies
      VirtRegMap.
      
      Differential Revision: http://reviews.llvm.org/D10911
      
      llvm-svn: 242173
      9912bb81
    • Eric Fiselier's avatar
      Fix PR24114 - std::atomic for non-Clang is not a literal type · 092c475e
      Eric Fiselier authored
      Add _LIBCPP_CONSTEXPR to the implementation of __gcc_atomic_t.
      
      llvm-svn: 242172
      092c475e
    • Nemanja Ivanovic's avatar
      Add missing builtins to altivec.h for ABI compliance (vol. 4) · 6c363ed6
      Nemanja Ivanovic authored
      This patch corresponds to review:
      http://reviews.llvm.org/D11184
      
      A number of new interfaces for altivec.h (as mandated by the ABI):
      vector float vec_cpsgn(vector float, vector float)
      vector double vec_cpsgn(vector double, vector double)
      vector double vec_or(vector bool long long, vector double)
      vector double vec_or(vector double, vector bool long long)
      vector double vec_re(vector double)
      vector signed char vec_cntlz(vector signed char)
      vector unsigned char vec_cntlz(vector unsigned char)
      vector short vec_cntlz(vector short)
      vector unsigned short vec_cntlz(vector unsigned short)
      vector int vec_cntlz(vector int)
      vector unsigned int vec_cntlz(vector unsigned int)
      vector signed long long vec_cntlz(vector signed long long)
      vector unsigned long long vec_cntlz(vector unsigned long long)
      vector signed char vec_nand(vector bool signed char, vector signed char)
      vector signed char vec_nand(vector signed char, vector bool signed char)
      vector signed char vec_nand(vector signed char, vector signed char)
      vector unsigned char vec_nand(vector bool unsigned char, vector unsigned char)
      vector unsigned char vec_nand(vector unsigned char, vector bool unsigned char)
      vector unsigned char vec_nand(vector unsigned char, vector unsigned char)
      vector short vec_nand(vector bool short, vector short)
      vector short vec_nand(vector short, vector bool short)
      vector short vec_nand(vector short, vector short)
      vector unsigned short vec_nand(vector bool unsigned short, vector unsigned short)
      vector unsigned short vec_nand(vector unsigned short, vector bool unsigned short)
      vector unsigned short vec_nand(vector unsigned short, vector unsigned short)
      vector int vec_nand(vector bool int, vector int)
      vector int vec_nand(vector int, vector bool int)
      vector int vec_nand(vector int, vector int)
      vector unsigned int vec_nand(vector bool unsigned int, vector unsigned int)
      vector unsigned int vec_nand(vector unsigned int, vector bool unsigned int)
      vector unsigned int vec_nand(vector unsigned int, vector unsigned int)
      vector signed long long vec_nand(vector bool long long, vector signed long long)
      vector signed long long vec_nand(vector signed long long, vector bool long long)
      vector signed long long vec_nand(vector signed long long, vector signed long long)
      vector unsigned long long vec_nand(vector bool long long, vector unsigned long long)
      vector unsigned long long vec_nand(vector unsigned long long, vector bool long long)
      vector unsigned long long vec_nand(vector unsigned long long, vector unsigned long long)
      vector signed char vec_orc(vector bool signed char, vector signed char)
      vector signed char vec_orc(vector signed char, vector bool signed char)
      vector signed char vec_orc(vector signed char, vector signed char)
      vector unsigned char vec_orc(vector bool unsigned char, vector unsigned char)
      vector unsigned char vec_orc(vector unsigned char, vector bool unsigned char)
      vector unsigned char vec_orc(vector unsigned char, vector unsigned char)
      vector short vec_orc(vector bool short, vector short)
      vector short vec_orc(vector short, vector bool short)
      vector short vec_orc(vector short, vector short)
      vector unsigned short vec_orc(vector bool unsigned short, vector unsigned short)
      vector unsigned short vec_orc(vector unsigned short, vector bool unsigned short)
      vector unsigned short vec_orc(vector unsigned short, vector unsigned short)
      vector int vec_orc(vector bool int, vector int)
      vector int vec_orc(vector int, vector bool int)
      vector int vec_orc(vector int, vector int)
      vector unsigned int vec_orc(vector bool unsigned int, vector unsigned int)
      vector unsigned int vec_orc(vector unsigned int, vector bool unsigned int)
      vector unsigned int vec_orc(vector unsigned int, vector unsigned int)
      vector signed long long vec_orc(vector bool long long, vector signed long long)
      vector signed long long vec_orc(vector signed long long, vector bool long long)
      vector signed long long vec_orc(vector signed long long, vector signed long long)
      vector unsigned long long vec_orc(vector bool long long, vector unsigned long long)
      vector unsigned long long vec_orc(vector unsigned long long, vector bool long long)
      vector unsigned long long vec_orc(vector unsigned long long, vector unsigned long long)
      vector signed char vec_div(vector signed char, vector signed char)
      vector unsigned char vec_div(vector unsigned char, vector unsigned char)
      vector signed short vec_div(vector signed short, vector signed short)
      vector unsigned short vec_div(vector unsigned short, vector unsigned short)
      vector signed int vec_div(vector signed int, vector signed int)
      vector unsigned int vec_div(vector unsigned int, vector unsigned int)
      vector signed long long vec_div(vector signed long long, vector signed long long)
      vector unsigned long long vec_div(vector unsigned long long, vector unsigned long long)
      vector unsigned char vec_mul(vector unsigned char, vector unsigned char)
      vector unsigned int vec_mul(vector unsigned int, vector unsigned int)
      vector unsigned long long vec_mul(vector unsigned long long, vector unsigned long long)
      vector unsigned short vec_mul(vector unsigned short, vector unsigned short)
      vector signed char vec_mul(vector signed char, vector signed char)
      vector signed int vec_mul(vector signed int, vector signed int)
      vector signed long long vec_mul(vector signed long long, vector signed long long)
      vector signed short vec_mul(vector signed short, vector signed short)
      vector signed long long vec_mergeh(vector signed long long, vector signed long long)
      vector signed long long vec_mergeh(vector signed long long, vector bool long long)
      vector signed long long vec_mergeh(vector bool long long, vector signed long long)
      vector unsigned long long vec_mergeh(vector unsigned long long, vector unsigned long long)
      vector unsigned long long vec_mergeh(vector unsigned long long, vector bool long long)
      vector unsigned long long vec_mergeh(vector bool long long, vector unsigned long long)
      vector double vec_mergeh(vector double, vector double)
      vector double vec_mergeh(vector double, vector bool long long)
      vector double vec_mergeh(vector bool long long, vector double)
      vector signed long long vec_mergel(vector signed long long, vector signed long long)
      vector signed long long vec_mergel(vector signed long long, vector bool long long)
      vector signed long long vec_mergel(vector bool long long, vector signed long long)
      vector unsigned long long vec_mergel(vector unsigned long long, vector unsigned long long)
      vector unsigned long long vec_mergel(vector unsigned long long, vector bool long long)
      vector unsigned long long vec_mergel(vector bool long long, vector unsigned long long)
      vector double vec_mergel(vector double, vector double)
      vector double vec_mergel(vector double, vector bool long long)
      vector double vec_mergel(vector bool long long, vector double)
      vector signed int vec_pack(vector signed long long, vector signed long long)
      vector unsigned int vec_pack(vector unsigned long long, vector unsigned long long)
      vector bool int vec_pack(vector bool long long, vector bool long long)
      
      llvm-svn: 242171
      6c363ed6
    • David Blaikie's avatar
      Avoid MSVC-incompatible use of init list. · 9f8ff9c4
      David Blaikie authored
      llvm-svn: 242170
      9f8ff9c4
    • Matthias Braun's avatar
      RAGreedy: Keep track of allocated PhysRegs internally · 953393a7
      Matthias Braun authored
      Do not use MachineRegisterInfo::setPhysRegUsed()/isPhysRegUsed()
      anymore. This bitset changes function-global state and is set by the
      VirtRegRewriter anyway.
      Simply use a bitvector private to RAGreedy.
      
      Differential Revision: http://reviews.llvm.org/D10910
      
      llvm-svn: 242169
      953393a7
    • David Blaikie's avatar
      Rely on default zero-arg value for IRBuilder::CreateCall calls to zero-arg functions · 4ba525b7
      David Blaikie authored
      Patch by servuswiegehtz at yahoo.de
      
      llvm-svn: 242168
      4ba525b7
    • Nemanja Ivanovic's avatar
      Add missing builtins to the PPC back end for ABI compliance (vol. 4) · 984a3613
      Nemanja Ivanovic authored
      This patch corresponds to review:
      http://reviews.llvm.org/D11183
      
      Back end portion of the fourth round of additions to altivec.h.
      
      llvm-svn: 242167
      984a3613
    • Tim Northover's avatar
      ARM: add at least one real test for r242123. · feabe2e2
      Tim Northover authored
      The ones committed were orthogonal to the change and would have passed before
      that revision. What it *did* do was prevent an assertion failure when
      generating object files.
      
      llvm-svn: 242166
      feabe2e2
    • Matthias Braun's avatar
      PrologEpilogInserter: Rewrite API to determine callee save regsiters. · 02564865
      Matthias Braun authored
      This changes TargetFrameLowering::processFunctionBeforeCalleeSavedScan():
      
      - Rename the function to determineCalleeSaves()
      - Pass a bitset of callee saved registers by reference, thus avoiding
        the function-global PhysRegUsed bitset in MachineRegisterInfo.
      - Without PhysRegUsed the implementation is fine tuned to not save
        physcial registers which are only read but never modified.
      
      Related to rdar://21539507
      
      Differential Revision: http://reviews.llvm.org/D10909
      
      llvm-svn: 242165
      02564865
    • Tim Northover's avatar
      AArch64: add rev64 alias for 64-bit rev instruction. · c962d4f2
      Tim Northover authored
      It could be useful to assembly programmers and makes the permitted variants a
      little more uniform.
      
      llvm-svn: 242164
      c962d4f2
    • Krzysztof Parzyszek's avatar
      [Hexagon] Generate "extract" instructions more aggressively · a0ecf07c
      Krzysztof Parzyszek authored
      Generate extract instructions (via intrinsics) before the DAG combiner
      folds shifts into unrecognizable forms.
      
      llvm-svn: 242163
      a0ecf07c
    • Rafael Espindola's avatar
      llvm-ar: Don't try to extract from thin archives. · e549b8c2
      Rafael Espindola authored
      This matches the gnu ar behavior.
      
      llvm-svn: 242162
      e549b8c2
    • Hans Wennborg's avatar
      AST Matchers: pass ast_type_traits::DynTypedNode by const-ref · b27f2496
      Hans Wennborg authored
      (Broken out from http://reviews.llvm.org/D11168)
      
      llvm-svn: 242161
      b27f2496
    • Hans Wennborg's avatar
      ARMAsmParser: Take MCInst param by const-ref · 61f9efe7
      Hans Wennborg authored
      (Broken out from http://reviews.llvm.org/D11167)
      
      llvm-svn: 242160
      61f9efe7
    • David Blaikie's avatar
      Add default value for Args parameter of IRBuilder::CreateCall · c28708bc
      David Blaikie authored
      Convenient for calls to zero-argument functions.
      
      Patch by servuswiegehtz at yahoo.de
      
      llvm-svn: 242159
      c28708bc
    • Rafael Espindola's avatar
      Sleep for 2.1 seconds to see if that makes the test stable on windows. · 4ae78439
      Rafael Espindola authored
      Might fix pr24106.
      
      llvm-svn: 242158
      4ae78439
    • Hans Wennborg's avatar
    • Rafael Espindola's avatar
      llvm-ar: print an error when the requested member is not found. · c3eec458
      Rafael Espindola authored
      llvm-svn: 242156
      c3eec458
  2. Jul 14, 2015