summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Comment a wacky test caseDouglas Gregor2011-01-181-0/+3
| | | | llvm-svn: 123758
* For completeness, generalize the (X + Y) - Y -> X transform and add X - (X + ↵Duncan Sands2011-01-182-15/+77
| | | | | | | | | | 1) -> -1. These were not recommended by my auto-simplifier since they don't fire often enough. However they do fire from time to time, for example they remove one subtraction from the final bitcode for 483.xalancbmk. llvm-svn: 123755
* Simplify (X<<1)-X into X. According to my auto-simplier this is the most ↵Duncan Sands2011-01-182-0/+26
| | | | | | | | | | | | | common missed simplification in fully optimized code. It occurs sporadically in the testsuite, and many times in 403.gcc: the final bitcode has 131 fewer subtractions after this change. The reason that the multiplies are not eliminated is the same reason that instcombine did not catch this: they are used by other instructions (instcombine catches this with a more general transform which in general is only profitable if the operands have only one use). llvm-svn: 123754
* Fix some unnecessarily complicated code for canonicalizing variably-modifiedJohn McCall2011-01-182-48/+120
| | | | | | parameter types. llvm-svn: 123753
* add a noteChris Lattner2011-01-181-0/+20
| | | | llvm-svn: 123752
* Generalize some operations on qualifiers. QualType::getQualifiers() andJohn McCall2011-01-184-102/+167
| | | | | | | ::getCVRQualifiers() now look through array types, like all the other standard queries. Also, make a 'split' variant of getUnqualifiedType(). llvm-svn: 123751
* finish a sentence.Chris Lattner2011-01-181-1/+1
| | | | llvm-svn: 123750
* SPARC backend: Modified LowerCall and LowerFormalArguments so that they use ↵Venkatraman Govindaraju2011-01-182-272/+221
| | | | | | CallingConv assignments. llvm-svn: 123749
* Remove an unnecessary #include.Cameron Zwarich2011-01-181-1/+0
| | | | llvm-svn: 123748
* Move DominanceFrontier from VMCore to Analysis.Cameron Zwarich2011-01-185-130/+140
| | | | llvm-svn: 123747
* McARM: Use accessors where appropriate.Daniel Dunbar2011-01-181-13/+13
| | | | llvm-svn: 123746
* McARM: Fill in ASMOperand::dump() for memory operands.Daniel Dunbar2011-01-181-1/+56
| | | | llvm-svn: 123745
* McARM: Make ARMOperand use a union where appropriate.Daniel Dunbar2011-01-181-9/+13
| | | | llvm-svn: 123744
* There is no point in verifying an analysis that is never updated.Cameron Zwarich2011-01-182-13/+0
| | | | llvm-svn: 123743
* Fix newlines.Daniel Dunbar2011-01-181-60/+60
| | | | llvm-svn: 123742
* tests: Force a triple.Daniel Dunbar2011-01-181-1/+1
| | | | llvm-svn: 123741
* McARM: Unify ParseMemory() successfull return.Daniel Dunbar2011-01-181-40/+22
| | | | llvm-svn: 123740
* McARM: Early exit on failure (NEFC).Daniel Dunbar2011-01-181-7/+8
| | | | llvm-svn: 123739
* McARM: Always keep an offset expression, if used (instead of assuming == 0 ↵Daniel Dunbar2011-01-181-24/+29
| | | | | | | | if used but not present), and simplify logic. Also, clean up various non-sensicalisms in isMemModeRegThumb() and isMemModeImmThumb(). llvm-svn: 123738
* McARM: Add a variety of asserts on the sanity of memory operands.Daniel Dunbar2011-01-181-1/+10
| | | | llvm-svn: 123737
* McARM: Use a consistent marker for not-set OffsetRegNum.Daniel Dunbar2011-01-181-1/+1
| | | | llvm-svn: 123736
* Add support for explicit constructor calls in Microsoft mode.Francois Pichet2011-01-187-15/+129
| | | | | | | | | | | | | | | | | | | For example: class A{ public: A& operator=(const A& that) { if (this != &that) { this->A::~A(); this->A::A(that); // <=== explicit constructor call. } return *this; } }; More work will be needed to support an explicit call to a template constructor. llvm-svn: 123735
* Correctly enable test/Sema/unit-variables.c,Ted Kremenek2011-01-182-2/+4
| | | | | | | thus identifying a minor logical flaw in UninitializedValuesV2.cpp. llvm-svn: 123734
* Teach UninitializedValuesV2 about "int x = x" andTed Kremenek2011-01-182-8/+30
| | | | | | also properly handle confluence of loops. llvm-svn: 123733
* Convert a std::map to a DenseMap for another 1.7% speedup on -scalarrepl.Cameron Zwarich2011-01-181-3/+3
| | | | llvm-svn: 123732
* Make a std::vector a SmallVector<*, 32> like the other vectors in the sameCameron Zwarich2011-01-181-1/+1
| | | | | | | function. This seems to be about a 1.5% speedup of -scalarrepl on test-suite with SPEC2000 and SPEC2006. llvm-svn: 123731
* Reduce indentation and remove commented out code.Rafael Espindola2011-01-181-122/+101
| | | | llvm-svn: 123729
* Get clang-wpa to build in TOT (reflecting updatesTed Kremenek2011-01-181-6/+11
| | | | | | to the static analyzer). llvm-svn: 123727
* Remove some now-unused DominanceFrontier methods.Cameron Zwarich2011-01-182-151/+0
| | | | llvm-svn: 123726
* Remove code for updating dominance frontiers and some outdated references toCameron Zwarich2011-01-187-105/+21
| | | | | | dominance and post-dominance frontiers. llvm-svn: 123725
* Remove outdated references to dominance frontiers.Cameron Zwarich2011-01-186-31/+29
| | | | llvm-svn: 123724
* Introduce the notion of a "minimal" import of ASTs, to better support LLDB.Douglas Gregor2011-01-183-9/+60
| | | | llvm-svn: 123723
* McARM: Start marking T2 address operands as such, for the benefit of the parser.Daniel Dunbar2011-01-182-0/+17
| | | | llvm-svn: 123722
* Replace calls to CharUnits::fromQuantity() with ones to Ken Dyck2011-01-182-4/+4
| | | | | | ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units. llvm-svn: 123720
* Fix warnings found by gcc-4.6, from -Wunused-but-set-variable andJeffrey Yasskin2011-01-1826-65/+40
| | | | | | -Wint-to-pointer-cast. llvm-svn: 123719
* Formatting tweak.Daniel Dunbar2011-01-181-1/+1
| | | | llvm-svn: 123718
* Support/CommandLine: Add "Did you mean" print for mismatched operands.Daniel Dunbar2011-01-181-0/+39
| | | | llvm-svn: 123717
* In ThreadPlanCallFunction, do the Takedown right when the thread plan gets ↵Jim Ingham2011-01-182-0/+10
| | | | | | popped. When the function call is discarded (e.g. when it crashes and discard_on_error is true) the plan gets discarded. You need to make sure that the stack gets restored right then, and not wait till you start again and the thread plan stack is cleared. llvm-svn: 123716
* Replace calls to CharUnits::fromQuantity() with onesKen Dyck2011-01-182-17/+11
| | | | | | ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units. llvm-svn: 123715
* The stub routine that we're calling uses test and so clobbersEric Christopher2011-01-181-2/+2
| | | | | | the flags. llvm-svn: 123712
* minor change to rafael's recent patches: if something isChris Lattner2011-01-181-1/+7
| | | | | | | constant but requires a unique address, we can still put it in a readonly section, just not a mergable one. llvm-svn: 123711
* Quick fixes to set access specifiers for TypedefsSean Callanan2011-01-181-0/+7
| | | | | | and Enums inside classes. llvm-svn: 123710
* Remove unused variables found by gcc-4.6's -Wunused-but-set-variable.Jeffrey Yasskin2011-01-185-17/+0
| | | | llvm-svn: 123707
* Remove checking that prevented overlapping CALLSEQ_START/CALLSEQ_ENDStuart Hastings2011-01-181-15/+9
| | | | | | | ranges, add legalizer support for nested calls. Necessary for ARM byval support. Radar 7662569. llvm-svn: 123704
* Added support for the fragile ivars provided bySean Callanan2011-01-179-14/+135
| | | | | | | Apple's Objective-C 2.0 runtime. They are enabled if the Objective-C runtime has the proper version. llvm-svn: 123694
* Add a method on the ObjC Language Runtime that returns the runtime version.Jim Ingham2011-01-178-15/+32
| | | | llvm-svn: 123693
* lib/CodeGen/TargetInfo.cpp: Add Win64 calling conversion.NAKAMURA Takumi2011-01-171-2/+49
| | | | | | | FIXME: It would be incompatible to Microsoft's in one point. On mingw64-gcc, {i128} is expanded for args and returned as {rax, rdx}. llvm-svn: 123692
* lib/Basic/Targets.cpp: __builtin_va_list is as same on win64 mingw64!NAKAMURA Takumi2011-01-171-3/+3
| | | | llvm-svn: 123691
* lib/Basic/Targets.cpp: Fix __declspec() on Mingw-w64.NAKAMURA Takumi2011-01-171-1/+1
| | | | | | It should be defined as-is. Some headers would detect existence of __declspec and use one. llvm-svn: 123690
* lib/Basic/Targets.cpp: Set user_label_prefix on Win64 both mingw and msvc.NAKAMURA Takumi2011-01-171-0/+1
| | | | llvm-svn: 123689
OpenPOWER on IntegriCloud