- Aug 14, 2015
-
-
Karthik Bhat authored
This patch enables dead stroe elimination across basicblocks. Example: define void @test_02(i32 %N) { %1 = alloca i32 store i32 %N, i32* %1 store i32 10, i32* @x %2 = load i32, i32* %1 %3 = icmp ne i32 %2, 0 br i1 %3, label %4, label %5 ; <label>:4 store i32 5, i32* @x br label %7 ; <label>:5 %6 = load i32, i32* @x store i32 %6, i32* @y br label %7 ; <label>:7 store i32 15, i32* @x ret void } In the above example dead store "store i32 5, i32* @x" is now eliminated. Differential Revision: http://reviews.llvm.org/D11143 llvm-svn: 245025 -
Chandler Carruth authored
normalize its formatting before I make more substantial changes. llvm-svn: 245024
-
Chandler Carruth authored
their headers. llvm-svn: 245023
-
Saleem Abdulrasool authored
Identified by the clang static analyzer. No functional change intended. llvm-svn: 245022
-
Chandler Carruth authored
its creation function. This required shifting a bunch of method definitions to be out-of-line so that we could leave most of the implementation guts in the .cpp file. llvm-svn: 245021
-
Bhushan D. Attarde authored
SUMMARY: This patch adds support of floating point and aggregate return types in GetReturnValueObjectImpl() for mips32 Reviewers: clayborg Subscribers: mohit.bhakkad, nitesh.jain, sagar, jaydeep, lldb-commits Differential Revision: http://reviews.llvm.org/D11930 llvm-svn: 245020 -
Chandler Carruth authored
its creation function. Update the relevant includes accordingly. llvm-svn: 245019
-
Rafael Espindola authored
This is more convenient than the offset from the start of the file as we don't have to worry about it changing when we move the output section. This is a port of r245008 from ELF. llvm-svn: 245018
-
Chandler Carruth authored
before making substantial changes. llvm-svn: 245017
-
Chandler Carruth authored
creating this header. llvm-svn: 245016
-
Chandler Carruth authored
llvm-svn: 245015
-
Chandler Carruth authored
formatting. llvm-svn: 245014
-
Chandler Carruth authored
creation function into that header. llvm-svn: 245013
-
Chandler Carruth authored
creation function there. Same basic refactoring as the other alias analyses. Nothing special required this time around. llvm-svn: 245012
-
Chandler Carruth authored
satisfy libc++'s std::forward_list which requires the value type to be complete. llvm-svn: 245011
-
Chandler Carruth authored
substantial changes to normalize any formatting. llvm-svn: 245010
-
Chandler Carruth authored
I've used forward declarations and reorderd the source code some to make this reasonably clean and keep as much of the code as possible in the source file, including all the stratified set details. Just the basic AA interface and the create function are in the header file, and the header file is now included into the relevant locations. llvm-svn: 245009
-
Rafael Espindola authored
For now it is empty. I will add the symbols in a followup patch. llvm-svn: 245008
-
Chandler Carruth authored
the AA counter pass. For pointsToConstantMemory, I think this is a "bug fix" as I think the code as written will actually infloop if ever reached. For the getModRefInfo, this is a no-op change but with a significantly simpler form. llvm-svn: 245007
-
Chandler Carruth authored
.cpp file to make the header much less noisy. Also makes it easy to use a static helper rather than a public method for printing lines of stats. llvm-svn: 245006
-
Chandler Carruth authored
for subsequent changes. llvm-svn: 245005
-
Chandler Carruth authored
pattern. Also hoist the creation routine out of the generic header and into the pass header now that we have one. I've worked to not make any changes, even formatting ones here. I'll clean up the formatting and other things in a follow-up patch now that the code is in the right place. llvm-svn: 245004
-
Jingyue Wu authored
Summary: This patch implements my promised optimization to reunites certain sexts from operands after we extract the constant offset. See the header comment of reuniteExts for its motivation. One key building block that enables this optimization is Bjarke's poison value analysis (D11212). That helps to prove "a +nsw b" can't overflow. Reviewers: broune Subscribers: jholewinski, sanjoy, llvm-commits Differential Revision: http://reviews.llvm.org/D12016 llvm-svn: 245003
-
Chandler Carruth authored
and generally clean up their formatting. llvm-svn: 245002
-
Chandler Carruth authored
analysis's header file to be more consistent with other analyses. llvm-svn: 245001
-
Chandler Carruth authored
substantial changes needed for the new pass manager's AA integration. llvm-svn: 245000
-
Jim Ingham authored
I was assuming that when a bit of inlined code was followed by code from the inlining site, it was going to execute to the inlining site code, but apparently that's not always true. So we need to be a bit more careful getting past the inlining, and use a StepOverRange plan not a RunToAddress plan. <rdar://problem/22191804> llvm-svn: 244999
-
David Blaikie authored
ConsumedBlockInfo objects were move assigned, but only in a state where the dtor was a no-op anyway. Subtle and easily could've happened in ways that wouldn't've been safe - so this change makes it safe no matter what state the ConsumedBlockInfo object is in. llvm-svn: 244998
-
David Blaikie authored
The ExceptionDemo now compiles, but doesn't link... undefined type references to various typeinfo. llvm-svn: 244997
-
Alex Lorenz authored
llvm-svn: 244996
-
David Blaikie authored
llvm-svn: 244995
-
David Blaikie authored
This still doesn't build -Werror clean, but other than that it should at least build. llvm-svn: 244994
-
Chandler Carruth authored
AliasAnalysis in LoopIdiomRecognize. The previous commit to LIR, r244879, exposed some scary bug in the loop pass pipeline with an assert failure that showed up on several bots. This patch got reverted as part of getting that revision reverted, but they're actually independent and unrelated. This patch has no functional change and should be completely safe. It is also useful for my current work on the AA infrastructure. llvm-svn: 244993
-
Greg Clayton authored
Add a better fix for searching for spaces in BSD archive object names where we only trim trailing spaces. I made an example where I had a file named "testtesttestt .o" (16 chars) that I was able to put into a .a file and we would previously truncate the object name to "testtesttestt" since we searched for any space in the name. I believe the BSD archive docs say that filenames with spaces will use the extended format, but our current libtool doesn't so I wanted to fix it by only removing trailing spaces. llvm-svn: 244992
-
Richard Smith authored
llvm-svn: 244991
-
David Blaikie authored
Wdeprecated: ByrefHelpers are copy constructed by the ::buildByrefHelpers helper, make sure they're safely copyable Make the copy/move ctors protected and defaulted in the base, make the derived classes final to avoid exposing any slicing-prone APIs. Also, while I'm here, simplify the use of buildByrefHelpers by taking the parameter by value instead of non-const ref. None of the callers care aobut observing the state after the call. llvm-svn: 244990
-
David Majnemer authored
We risk iterator invalidation issues if we use a DenseMap to hold the backing storage for an APValue. Instead, BumpPtrAllocate them and use APValue * as our DenseMap value. Also, don't assume that MaterializedGlobalTemporaryMap won't regrow between when we initially perform a lookup and later on when we actually try to insert into it. This fixes PR24289. Differential Revision: http://reviews.llvm.org/D11629 llvm-svn: 244989
-
Richard Smith authored
via a module map found by -fmodule-map-file=, the home directory of the module is the current working directory, even if that's a different directory on reload. llvm-svn: 244988
-
Jeroen Ketema authored
llvm-svn: 244987
-
David Blaikie authored
Wdeprecated: Ensure CheckNames are copy assignable (used in setCurrentCheckName) by removing the unnecessary copy ctor llvm-svn: 244986
-