1. Sep 29, 2014
  2. Sep 28, 2014
  3. Sep 27, 2014
    • Yaron Keren's avatar
      Fix llvm::huge_valf multiple initializations with Visual C++. · 7b4133ac
      Yaron Keren authored
      llvm::huge_valf is defined in a header file, so it is initialized
      multiple times in every compiled unit upon program startup.
      
      With non-VC compilers huge_valf is set to a HUGE_VALF which the
      compiler can probably optimize out.
      
      With VC numeric_limits<float>::infinity() does not return a number
      but a runtime structure member which therotically may change 
      between calls so the compiler does not optimize out the 
      initialization and it happens many times. It can be easily seen by 
      placing a breakpoint on the initialization line.
      
      This patch moves llvm::huge_valf initialization to a source file
      instead of the header.
      
      llvm-svn: 218567
      7b4133ac
    • Johannes Doerfert's avatar
      [RTC] Bail if too many parameters are involved in a RTC access. · 9143d67a
      Johannes Doerfert authored
        If too many parameters are involved in accesses used to create RTCs
        we might end up with enormous compile times and RTC expressions.
        The reason is that the lexmin/lexmax is dependent on all these
        parameters and isl might need to create a case for every "ordering"
        of them (e.g., p0 <= p1 <= p2, p1 <= p0 <= p2, ...).
      
        The exact number of parameters allowed in accesses is defined by the
        command line option -polly-rtc-max-parameters=XXX and set by default
        to 8.
      
        Differential Revision: http://reviews.llvm.org/D5500
      
      llvm-svn: 218566
      9143d67a
    • Chandler Carruth's avatar
      [x86] Fix yet another issue with widening vector shuffle elements. · f4b9e6b9
      Chandler Carruth authored
      I spotted this by inspection when debugging something else, so I have no
      test case what-so-ever, and am not even sure it is possible to
      realistically trigger the bug. But this is what was intended here.
      
      llvm-svn: 218565
      f4b9e6b9
    • Craig Topper's avatar
      5ed88de9
    • Craig Topper's avatar
      Reduce code duplication a bit. · 5546f8c8
      Craig Topper authored
      llvm-svn: 218563
      5546f8c8
    • Chandler Carruth's avatar
      [x86] Fix terrible bugs everywhere in the new vector shuffle lowering · 4d03be17
      Chandler Carruth authored
      and in the target shuffle combining when trying to widen vector
      elements.
      
      Previously only one of these was correct, and we didn't correctly
      propagate zeroing target shuffle masks (which have a different sentinel
      value from undef in non- target shuffle masks now). This isn't just
      a missed optimization, this caused us to drop zeroing shuffles on the
      floor and miscompile code. The added test case is one example of that.
      
      There are other fixes to the test suite as a consequence of this as well
      as restoring the undef elements in some of the masks that were lost when
      I brought sanity to the actual *value* of the undef and zero sentinels.
      
      I've also just cleaned up some of the PSHUFD and PSHUFLW and PSHUFHW
      combining code, but that code really needs to go. It was a nice initial
      attempt, but it isn't very principled and the recursive shuffle combiner
      is much more powerful.
      
      llvm-svn: 218562
      4d03be17
    • Chandler Carruth's avatar
      [x86] Flip the sentinel values used in the target shuffle mask decoding · 81e6b29f
      Chandler Carruth authored
      to significantly more sane sentinels. Notably, everywhere else in the
      backend's representation of shuffles uses '-1' to represent undef. The
      target shuffle masks really shouldn't diverge from that, especially as
      in a few places they are manipulated by shared code.
      
      This causes us to lose some undef lanes in various test masks. I want to
      get these back, but technically it isn't invalid and there are a *lot*
      of bugs here so I want to try to establish a saner baseline for fixing
      some of the bugs by aligning the specific senitnel values used.
      
      llvm-svn: 218561
      81e6b29f
    • Craig Topper's avatar
      Fix TableGen -gen-disassembler output for bit fields with an offset. · 5996da20
      Craig Topper authored
      This fixes bit assignments like this
      Inst{7-0} = Foo{9-2}
      
      Patch by Steve King.
      
      llvm-svn: 218560
      5996da20
    • Todd Fiala's avatar
      thread state coordinator: added thread death support and more tests. · ef5dbf55
      Todd Fiala authored
      Tested two pending stops before notification, where one of the pending stop
      requirements was already known to be stopped.
      
      Tested pending thread stop before notification, then reporting thread with
      pending stop died and verifies pending notification is made.
      
      llvm-svn: 218559
      ef5dbf55
    • Todd Fiala's avatar
      thread state coordinator: added test for notify after two pending thread stops. · 9dd7334d
      Todd Fiala authored
      Glad I did - caught a bug where the auto variable was not a reference
      to a set and instead was a copy.  I need to review rules on that!
      
      llvm-svn: 218558
      9dd7334d
    • Richard Trieu's avatar
      779c6f25