- Jan 24, 2011
-
-
Chris Lattner authored
llvm-svn: 124099
-
- Jan 08, 2011
-
-
Chris Lattner authored
1. Take a flags argument instead of a bool. This makes it more clear to the reader what it is used for. 2. Add a flag that says that "remapping a value not in the map is ok". 3. Reimplement MapValue to share a bunch of code and be a lot more efficient. For lookup failures, don't drop null values into the map. 4. Using the new flag a bunch of code can vaporize in LinkModules and LoopUnswitch, kill it. No functionality change. llvm-svn: 123058
-
- Oct 13, 2010
-
-
Rafael Espindola authored
llvm-svn: 116390
-
- Aug 26, 2010
-
-
Dan Gohman authored
fix: add a flag to MapValue and friends which indicates whether any module-level mappings are being made. In the common case of inlining, no module-level mappings are needed, so MapValue doesn't need to examine non-function-local metadata, which can be very expensive in the case of a large module with really deep metadata (e.g. a large C++ program compiled with -g). This flag is a little awkward; perhaps eventually it can be moved into the ClonedCodeInfo class. llvm-svn: 112190
-
Daniel Dunbar authored
except ...", it is causing *massive* performance regressions when building Clang with itself (-O3 -g). llvm-svn: 112158
-
Daniel Dunbar authored
individual ...", which depends on r111922, which I am reverting. llvm-svn: 112157
-
- Aug 25, 2010
-
-
Dan Gohman authored
instructions, not when remapping modules. llvm-svn: 112091
-
- Aug 24, 2010
-
-
Dan Gohman authored
which does the same thing. This eliminates redundant code and handles MDNodes better. MDNode linking still doesn't fully work yet though. llvm-svn: 111941
-
Dan Gohman authored
that it avoids a lot of unnecessary cloning by avoiding remapping MDNode cycles when none of the nodes in the cycle actually need to be remapped. Also it uses the new temporary MDNode mechanism. llvm-svn: 111922
-
- Jul 24, 2010
-
-
Nick Lewycky authored
build of llvm-gcc. llvm-svn: 109355
-
Nick Lewycky authored
it needs to be mapped to refer to the function in the new module, not the old one. Fixes PR7700. llvm-svn: 109353
-
- Jul 22, 2010
-
-
Devang Patel authored
llvm-svn: 109132
-
Devang Patel authored
A non function local MDNode can have an operand which is cloned by MapValue(). llvm-svn: 109117
-
- Jul 02, 2010
-
-
Devang Patel authored
llvm-svn: 107516
-
- Jun 24, 2010
-
-
Devang Patel authored
Do not use "ValueMap" as a name for a local variable or an argument. llvm-svn: 106698
-
- Jun 23, 2010
-
-
Devang Patel authored
llvm-svn: 106598
-
Devang Patel authored
If a metadata operand is seeded in value map and the metadata should also be seeded in value map. This is not limited to function local metadata. Failure to seed metdata in such cases causes troubles when in a cloned module, metadata from a new module refers to values in old module. Usually this results in mysterious bugpoint crashes. For example, Checking to see if we can delete global inits: Unknown constant! UNREACHABLE executed at /d/g/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:904! llvm-svn: 106592
-
- Jun 22, 2010
-
-
Devang Patel authored
llvm-svn: 106529
-
Devang Patel authored
llvm-svn: 106528
-
- Apr 21, 2010
-
-
Devang Patel authored
Rename ValueMapTy as ValueToValueMapTy to clearly indicate that this has no replationship with ADT/ValueMap. llvm-svn: 101950
-
Devang Patel authored
llvm-svn: 101949
-
- Jan 27, 2010
-
-
Victor Hernandez authored
llvm-svn: 94618
-
- Jan 21, 2010
-
-
Chris Lattner authored
ValueMapper.cpp ends up calling an out of line __ZNK4llvm12PATypeHolder3getEv, which is a template and llvm-config determines arbitrarily to use the one in libipo. This sucks, but keeping the #include is a reasonable workaround. llvm-svn: 94103
-
Chris Lattner authored
llvm-svn: 94102
-
Chris Lattner authored
llvm-svn: 94101
-
Victor Hernandez authored
llvm-svn: 94092
-
Victor Hernandez authored
llvm-svn: 94091
-
- Jan 20, 2010
-
-
Victor Hernandez authored
llvm-svn: 93989
-
Victor Hernandez authored
Map operands of all function-local metadata, not just metadata passed to llvm.dbg.declare intrinsics llvm-svn: 93979
-
- Jan 18, 2010
-
-
Devang Patel authored
because it points to an alloca instruction through metadata. llvm-svn: 93757
-
- Nov 01, 2009
-
-
Chris Lattner authored
indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it for simplicity. llvm-svn: 85699
-
- Oct 31, 2009
-
-
Chris Lattner authored
llvm-svn: 85680
-
- Oct 29, 2009
-
-
Chris Lattner authored
crash on any clang tests. llvm-svn: 85465
-
Chris Lattner authored
llvm-svn: 85458
-
Chris Lattner authored
llvm-svn: 85457
-
- Oct 25, 2009
-
-
Dan Gohman authored
llvm-svn: 85020
-
- Jul 28, 2009
-
-
Devang Patel authored
New name is Metadata.h. llvm-svn: 77370
-
Owen Anderson authored
llvm-svn: 77366
-
Owen Anderson authored
llvm-svn: 77347
-
Owen Anderson authored
llvm-svn: 77266
-