1. Sep 02, 2014
    • David Majnemer's avatar
      Revert "Revert two GEP-related InstCombine commits" · d2df5019
      David Majnemer authored
      This reverts commit r216698 which reverted r216523 and r216598.
      
      We would attempt to perform the transformation even if the match()
      failed because, as a side effect, it would set V.  This would trick us
      into believing that we correctly found a place to correctly apply the
      transform.
      
      An additional test case was added to getelementptr.ll so that we might
      not regress in the future.
      
      llvm-svn: 216890
      d2df5019
    • Sanjay Patel's avatar
      Use an integer constant for FABS / FNEG (x86). · 601492a3
      Sanjay Patel authored
      This change will ease refactoring LowerFABS() and LowerFNEG() 
      since they have a lot of overlap.
      
      Remove the creation of a floating point constant from an integer
      because it's going to be used for a bitwise integer op anyway.
      
      No change to codegen expected, but the verbose comment string
      for asm output may change from float values to hex (integer),
      depending on whether the constant already exists or not.
      
      Differential Revision: http://reviews.llvm.org/D5052
      
      llvm-svn: 216889
      601492a3
    • David Majnemer's avatar
      Frontend: Reindent Opts.CoverageFile · 9676a2bc
      David Majnemer authored
      No functional change intended.
      
      llvm-svn: 216888
      9676a2bc
    • David Majnemer's avatar
      MS ABI: Reindent MicrosoftCXXABI::GetVirtualBaseClassOffset · ca32f934
      David Majnemer authored
      No functional change intended.
      
      llvm-svn: 216887
      ca32f934
    • Sanjay Patel's avatar
      Add a convenience method to copy wrapping, exact, and fast-math flags (NFC). · 5ad239e1
      Sanjay Patel authored
      The loop vectorizer preserves wrapping, exact, and fast-math properties of scalar instructions.
      This patch adds a convenience method to make that operation easier because we need to do this
      in the loop vectorizer, SLP vectorizer, and possibly other places.
      
      Although this is a 'no functional change' patch, I've added a testcase to verify that the exact
      flag is preserved by the loop vectorizer. The wrapping and fast-math flags are already checked
      in existing testcases.
      
      Differential Revision: http://reviews.llvm.org/D5138
      
      llvm-svn: 216886
      5ad239e1
  2. Sep 01, 2014
  3. Aug 31, 2014
    • NAKAMURA Takumi's avatar
      clang/test/CXX/drs/dr5xx.cpp: Suppress dr547 for targeting MSVC x86 for now,... · 3a1469ea
      NAKAMURA Takumi authored
      clang/test/CXX/drs/dr5xx.cpp: Suppress dr547 for targeting MSVC x86 for now, due to incompatibility of attribute(thiscall).
      
      With targeting i686-win32,
      
        error: 'error' diagnostics seen but not expected:
          File clang/test/CXX/drs/dr5xx.cpp Line 521: implicit instantiation of undefined template 'dr547::X<void () __attribute__((thiscall)) const>'
          File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X<void () __attribute__((thiscall)) const>'
          File clang/test/CXX/drs/dr5xx.cpp Line 518: implicit instantiation of undefined template 'dr547::X<void () __attribute__((thiscall)) const>'
        error: 'note' diagnostics seen but not expected:
          File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here
          File clang/test/CXX/drs/dr5xx.cpp Line 521: in instantiation of function template specialization 'dr547::f<void () __attribute__((thiscall)) const, dr547::S>' requested here
          File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here
          File clang/test/CXX/drs/dr5xx.cpp Line 516: template is declared here
        7 errors generated.
      
      llvm-svn: 216841
      3a1469ea
    • David Blaikie's avatar
      Delay adding imported entity DIEs to the lexical scope, streamlining the check... · 28127462
      David Blaikie authored
      Delay adding imported entity DIEs to the lexical scope, streamlining the check for "this scope has nothing in it"
      
      This makes the emptiness of the scope with regards to variables and
      nested scopes is the same as with regards to imported entities. Just
      check if we had nothing at all before we build the node.
      
      llvm-svn: 216840
      28127462
    • David Blaikie's avatar
      Modify DwarfDebug::constructImportedEntityDIE to return rather than insert into the scope · 8912df12
      David Blaikie authored
      Another step towards improving lexical_scope handling
      
      llvm-svn: 216839
      8912df12
    • David Blaikie's avatar
      Refactor constructImportedEntityDIE(DwarfUnit, DIImportedEntity) to return a... · e0e8a3ba
      David Blaikie authored
      Refactor constructImportedEntityDIE(DwarfUnit, DIImportedEntity) to return a DIE rather than inserting it into a specified context.
      
      First of many steps to improve lexical scope construction (to omit
      trivial lexical scopes - those without any direct variables). To that
      end it's easier not to create imported entities directly into the
      lexical scope node, but to build them, then add them if necessary.
      
      llvm-svn: 216838
      e0e8a3ba
    • Richard Smith's avatar
      cxx_status: we did support some of C++14 in Clang 3.3. · 1b886328
      Richard Smith authored
      llvm-svn: 216837
      1b886328