Displaying 1 50 of 183,426 commits (0.012s)

LLVM — llvm/trunk/test/CodeGen/ARM thumb2-size-opt.ll

[ARM] Add Thumb-2 code size optimization regression test for EOR.

LLVM — llvm/trunk/test/CodeGen/ARM thumb2-size-opt.ll

ARM] Add Thumb-2 code size optimization regression test for BIC.

LLVM — llvm/trunk/lib/Target/X86/AsmParser X86AsmInstrumentation.cpp CMakeLists.txt, llvm/trunk/test/Instrumentation/AddressSanitizer/X86 asm_rep_movs.ll asm_mov.ll

[asan-assembly-instrumentation] Prologue and epilogue are moved out from 
InstrumentMemOperand().

Reviewers: eugenis

Subscribers: llvm-commits

Differential revision: http://reviews.llvm.org/D4923

LLVM — cfe/trunk/lib/Driver ToolChains.cpp

Typo fix, no functionality change.

LLVM — llvm/trunk/lib/Target/ARM ARMInstrThumb2.td, llvm/trunk/lib/Target/ARM/AsmParser ARMAsmParser.cpp

Thumb2 M-class MSR instruction support changes

This patch implements a few changes related to the Thumb2 M-class MSR instruction:
 * better handling of unpredictable encodings,
 * recognition of the _g and _nzcvqg variants by the asm parser only if the DSP
   extension is available, preferred output of MSR APSR moves with the _<bits>
   suffix for v7-M.

Patch by Petr Pavlu.

LLVM — llvm/trunk/lib/CodeGen InlineSpiller.cpp

Fix in InlineSpiller to make the rematerilization loop also consider
implicit uses of the whole register when a sub register is defined.

Now the same iterator is used in the rematerilization loop as in the
spill loop later.

Patch provided by Mikael Holmen.

This fix was proposed and reviewed by Quentin Colombet,
http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-August/076135.html.

Unfortunately, this error in the rematerilization code has only been
seen in a large test case for an out-of-tree target, and is probably
hard to reproduce on an in-tree target. Therefore, no testcase is
provided.

LLVM — llvm/trunk/lib/Target/X86/AsmParser X86AsmInstrumentation.cpp CMakeLists.txt, llvm/trunk/test/Instrumentation/AddressSanitizer/X86 asm_rep_movs.ll asm_mov.ll

Revert "[asan-assembly-instrumentation] Prologue and epilogue are moved out from 
InstrumentMemOperand()."

This reverts commit 895aa397038b8de86d83ac0997a70949a486e112.

LLVM — llvm/trunk/lib/Transforms/Scalar MemCpyOptimizer.cpp, llvm/trunk/test/Transforms/MemCpyOpt memcpy-to-memset-with-lifetimes.ll

Fix a really bad miscompile introduced in r216865 - the else-if logic
chain became completely broken here as *all* intrinsic users ended up
being skipped, and the ones that seemed to be singled out were actually
the exact wrong set.

This is a great example of why long else-if chains can be easily
confusing. Switch the entire code to use early exits and early continues
to have simpler (and more importantly, correct) logic here, as well as
fixing the reversed logic for detecting and continuing on lifetime
intrinsics.

I've also significantly cleaned up the test case and added another test
case demonstrating an example where the optimization is not (trivially)
safe to perform.

LLVM — llvm/trunk/lib/Transforms/Vectorize LoopVectorize.cpp, llvm/trunk/test/Transforms/LoopVectorize duplicated-metadata.ll

Small refactor on VectorizerHint for deduplication

Previously, the hint mechanism relied on clean up passes to remove redundant
metadata, which still showed up if running opt at low levels of optimization.
That also has shown that multiple nodes of the same type, but with different
values could still coexist, even if temporary, and cause confusion if the
next pass got the wrong value.

This patch makes sure that, if metadata already exists in a loop, the hint
mechanism will never append a new node, but always replace the existing one.
It also enhances the algorithm to cope with more metadata types in the future
by just adding a new type, not a lot of code.

Re-applying again due to MSVC 2013 being minimum requirement, and this patch
having C++11 that MSVC 2012 didn't support.

Fixes PR20655.

LLVM — llvm/trunk/lib/Target/X86/AsmParser X86AsmInstrumentation.cpp CMakeLists.txt, llvm/trunk/test/Instrumentation/AddressSanitizer/X86 asm_rep_movs.ll asm_mov.ll

[asan-assembly-instrumentation] Prologue and epilogue are moved out from 
InstrumentMemOperand().

LLVM — lldb/trunk/include/lldb/Core ArchSpec.h, lldb/trunk/source/Core ArchSpec.cpp

Add an interface on ArchSpec to provide lldb client code
with a mechanism to query if the current target architecture
has non 8-bit bytes.

LLVM — llvm/trunk/include/llvm/Transforms/Utils Cloning.h, llvm/trunk/lib/Transforms/IPO Inliner.cpp InlineSimple.cpp

Feed AA to the inliner and use AA->getModRefBehavior in AddAliasScopeMetadata

This feeds AA through the IFI structure into the inliner so that
AddAliasScopeMetadata can use AA->getModRefBehavior to figure out which
functions only access their arguments (instead of just hard-coding some
knowledge of memory intrinsics). Most of the information is only available from
BasicAA; this is important for preserving alias scoping information for
target-specific intrinsics when doing the noalias parameter attribute to
metadata conversion.

LLVM — llvm/trunk/lib/Transforms/Scalar MemCpyOptimizer.cpp, llvm/trunk/test/Transforms/MemCpyOpt memcpy-to-memset-with-lifetimes.ll

Ignore lifetime intrinsics in use list for MemCpyOptimizer. Patch by Luqman Aden, review 
by Hal Finkel.

LLVM — llvm/trunk/lib/Analysis ScalarEvolution.cpp

Remove an errant outer loop that contains nothing but an inner loop over exactly the same 
elements. While no functionality is change intended (and hence there are no changes to 
tests), you don't want to skip this revision if bisecting for errors.

LLVM — llvm/trunk/lib/Transforms/Utils InlineFunction.cpp, llvm/trunk/test/Transforms/Inline noalias-calls.ll

Fix AddAliasScopeMetadata again - alias.scope must be a complete description

I thought that I had fixed this problem in r216818, but I did not do a very
good job. The underlying issue is that when we add alias.scope metadata we are
asserting that this metadata completely describes the aliasing relationships
within the current aliasing scope domain, and so in the context of translating
noalias argument attributes, the pointers must all be based on noalias
arguments (as underlying objects) and have no other kind of underlying object.
In r216818 excluding appropriate accesses from getting alias.scope metadata is
done by looking for underlying objects that are not identified function-local
objects -- but that's wrong because allocas, etc. are also function-local
objects and we need to explicitly check that all underlying objects are the
noalias arguments for which we're adding metadata aliasing scopes.

This fixes the underlying-object check for adding alias.scope metadata, and
does some refactoring of the related capture-checking eligibility logic (and
adds more comments; hopefully making everything a bit clearer).

Fixes self-hosting on x86_64 with -mllvm -enable-noalias-to-md-conversion (the
feature is still disabled by default).

LLVM — llvm/trunk/lib/CodeGen MachineSink.cpp, llvm/trunk/test/CodeGen/AArch64 arm64-atomic.ll

[MachineSink] Use the real post dominator tree

Summary:
Fixes a FIXME in MachineSinking. Instead of using the simple heuristics
in isPostDominatedBy, use the real MachinePostDominatorTree. The old
heuristics caused instructions to sink unnecessarily, and might create
register pressure.

Test Plan:
Added a NVPTX codegen test to verify that our change is in effect. It also
shows the unnecessary register pressure caused by over-sinking. Updated
affected tests in AArch64 and X86.

Reviewers: eliben, meheff, Jiangning

Reviewed By: Jiangning

Subscribers: jholewinski, aemerson, mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D4814

LLVM — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp DwarfDebug.h, llvm/trunk/test/DebugInfo missing-abstract-variable.ll PR20038.ll

DebugInfo: Elide lexical scopes which only contain other (inline or lexical) scopes.

DW_TAG_lexical_scopes inform debuggers about the instruction range for
which a given variable (or imported declaration/module/etc) is valid. If
the scope doesn't itself contain any such entities, it's a waste of
space and should be omitted.

We were correctly doing this for entirely empty leaves, but not for
intermediate nodes.

Reduces total (not just debug sections) .o file size for a bootstrap
-gmlt LLVM by 22% and bootstrap -gmlt clang executable by 13%. The wins
for a full -g build will be less as a % (and in absolute terms), but
should still be substantial - with some of that win being fewer
relocations, thus more substantiall reducing link times than fewer bytes
alone would have.

LLVM — llvm/branches/google testing

Updating branches/google/testing to r216630
Delta File
+0 -0 llvm/branches/google/testing/
+0 -0 1 file

LLVM — llvm/tags/google/testing 2014-08-31

Creating tags/google/testing/2014-08-31 from r216630
Delta File
+0 -0 llvm/tags/google/testing/2014-08-31/
+0 -0 1 file

LLVM — lldb/branches/google testing

Updating branches/google/testing to r216630
Delta File
+0 -0 lldb/branches/google/testing/
+0 -0 1 file

LLVM — lldb/tags/google/testing 2014-08-31

Creating tags/google/testing/2014-08-31 from r216630
Delta File
+0 -0 lldb/tags/google/testing/2014-08-31/
+0 -0 1 file

LLVM — cfe/branches/google testing

Updating branches/google/testing to r216630
Delta File
+0 -0 cfe/branches/google/testing/
+0 -0 1 file

LLVM — cfe/tags/google/testing 2014-08-31

Creating tags/google/testing/2014-08-31 from r216630
Delta File
+0 -0 cfe/tags/google/testing/2014-08-31/
+0 -0 1 file

LLVM — cfe/branches/google testing, clang-tools-extra/branches/google testing

Cleaning up testing branch
Delta File
+0 -0 cfe/branches/google/testing/
+0 -0 clang-tools-extra/branches/google/testing/
+0 -0 compiler-rt/branches/google/testing/
+0 -0 lldb/branches/google/testing/
+0 -0 llvm/branches/google/testing/
+0 -0 polly/branches/google/testing/
+0 -0 6 files

LLVM — llvm/trunk/lib/IR Type.cpp

Consider addrspaces in canLosslesslyBitCastTo()

Make this conservatively correct and report false for different
address spaces, which might require a nontrivial translation.

Based on the few uses of this, I don't think this currently
breaks anything.
Delta File
+7 -3 llvm/trunk/lib/IR/Type.cpp
+7 -3 1 file

LLVM — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp DwarfDebug.h

DebugInfo: Move argument creation up into the caller that's unambiguously handling the 
subprogram scope (replacing a conditional with an assertion in the process)

LLVM — cfe/trunk/test/CXX/drs dr5xx.cpp

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.
Delta File
+2 -0 cfe/trunk/test/CXX/drs/dr5xx.cpp
+2 -0 1 file

LLVM — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp

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 — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp DwarfDebug.h

Modify DwarfDebug::constructImportedEntityDIE to return rather than insert into the scope

Another step towards improving lexical_scope handling

LLVM — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp DwarfDebug.h

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 — cfe/trunk/www cxx_status.html

cxx_status: we did support some of C++14 in Clang 3.3.
Delta File
+1 -1 cfe/trunk/www/cxx_status.html
+1 -1 1 file

LLVM — cfe/trunk/www cxx_status.html

cxx_status: the name C++14 isn't provisional any more.
Delta File
+9 -8 cfe/trunk/www/cxx_status.html
+9 -8 1 file

LLVM — cfe/branches/release_35/docs ReleaseNotes.rst ClangFormatStyleOptions.rst

Some Clang 3.5 release note updates.

LLVM — cfe/trunk/test/CXX/drs dr5xx.cpp, cfe/trunk/www cxx_dr_status.html

Tests for DR525-550.

LLVM — llvm/trunk/lib/CodeGen/AsmPrinter DwarfDebug.cpp

Simplify expression using container's front() rather than begin()->

LLVM — llvm/trunk/unittests/ADT ArrayRefTest.cpp

Add some negative (and positive) static_assert checks for ArrayRef-of-pointer conversions 
introduced in r216709

LLVM — cfe/trunk/test/CodeGenCXX debug-info-access.cpp

clang/test/CodeGenCXX/debug-info-access.cpp: Use %itanium_abi_triple to appease msvc. 
"[def] [free]" can be seen in different order.

LLVM — llvm/trunk/lib/CodeGen IntrinsicLowering.cpp, llvm/trunk/test/ExecutionEngine/Interpreter intrinsics.ll

[PATCH][Interpreter] Add missing FP intrinsic lowering.

Summary:
This extends the work done in [1], adding missing intrinsic lowering for floor, trunc, 
round and copysign.

[1] http://comments.gmane.org/gmane.comp.compilers.llvm.cvs/199372

Test Plan: Extended `test/ExecutionEngine/Interpreter/intrinsics.ll` to test the 
additional missing intrinsics. All tests pass.

Reviewers: dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5120

LLVM — llvm/trunk/include/llvm/Bitcode BitstreamReader.h, llvm/trunk/test/Bitcode function-encoding-rel-operands.ll

Teach llvm-bcanalyzer to use one stream's BLOCKINFO to read another stream.

This allows streams that only use BLOCKINFO for debugging purposes to omit
the block entirely. As long as another stream is available with the correct
BLOCKINFO, the first stream can still be analyzed and dumped.

As part of this commit, BitstreamReader gets a move constructor and move
assignment operator, as well as a takeBlockInfo method.

LLVM — cfe/trunk/include/clang/ASTMatchers ASTMatchers.h, cfe/trunk/include/clang/Analysis/Analyses ThreadSafetyTIL.h

Fix some cases where StringRef was being passed by const reference. Remove const from some 
other StringRefs since its implicitly const already.

LLVM — cfe/trunk/include/clang/AST DeclTemplate.h Stmt.h, cfe/trunk/lib/AST Comment.cpp

Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning 
the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const 
T*>.

LLVM — llvm/trunk/include/llvm/IR DiagnosticInfo.h, llvm/trunk/lib/Analysis TargetTransformInfo.cpp

Remove 'virtual' keyword from methods markedwith 'override' keyword.

LLVM — llvm/trunk/tools/llc llc.cpp

Use StringRef to avoid copies and simplify code.
Delta File
+6 -18 llvm/trunk/tools/llc/llc.cpp
+6 -18 1 file

LLVM — llvm/trunk/unittests/ADT ArrayRefTest.cpp

Add a test for converting ArrayRef<T *> to ArrayRef<const T *>.

LLVM — llvm/trunk/include/llvm/MC SubtargetFeature.h MCDwarf.h, llvm/trunk/include/llvm/Support Path.h SpecialCaseList.h

Fix some cases where StringRef was being passed by const reference. Remove const from some 
other StringRefs since its implicitly const already.

LLVM — llvm/trunk/lib/Target/Sparc README.txt

JIT support has been added awhile ago.

LLVM — llvm/trunk/lib/Transforms/Utils InlineFunction.cpp, llvm/trunk/test/Transforms/Inline noalias-calls.ll

Fix AddAliasScopeMetadata to not add scopes when deriving from unknown pointers

The previous implementation of AddAliasScopeMetadata, which adds noalias
metadata to preserve noalias parameter attribute information when inlining had
a flaw: it would add alias.scope metadata to accesses which might have been
derived from pointers other than noalias function parameters. This was
incorrect because even some access known not to alias with all noalias function
parameters could easily alias with an access derived from some other pointer.
Instead, when deriving from some unknown pointer, we cannot add alias.scope
metadata at all. This fixes a miscompile of the test-suite's tramp3d-v4.
Furthermore, we cannot add alias.scope to functions unless we know they
access only argument-derived pointers (currently, we know this only for
memory intrinsics).

Also, we fix a theoretical problem with using the NoCapture attribute to skip
the capture check. This is incorrect (as explained in the comment added), but
would not matter in any code generated by Clang because we get only inferred
nocapture attributes in Clang-generated IR.

This functionality is not yet enabled by default.

LLVM — llvm/trunk/lib/Transforms/InstCombine InstCombineMulDivRem.cpp

InstCombine: Respect recursion depth in visitUDivOperand

LLVM — llvm/trunk/lib/Transforms/InstCombine InstCombineAndOrXor.cpp, llvm/trunk/test/Transforms/InstCombine and2.ll

InstCombine: Try harder to combine icmp instructions

consider: (and (icmp X, Y), (and Z, (icmp A, B)))
It may be possible to combine (icmp X, Y) with (icmp A, B).
If we successfully combine, create an 'and' instruction with Z.

This fixes PR20814.

N.B. There is room for improvement after this change but I'm not
convinced it's worth chasing yet.

LLVM — llvm/trunk/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/trunk/test/CodeGen/AArch64 madd-combiner.ll

Revert r216805 "[MachineCombiner][AArch64] Use the correct register class for MADD, SUB, 
and OR."

I think this broke the build bot. Reverting it for now until I have time to take a closer 
look.