| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | don't use count + insert, just do insert + failure. Also, instead of ↵ | Chris Lattner | 2009-09-20 | 1 | -6/+9 |
| | | | | | | | | | deleting from the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :) llvm-svn: 82365 | ||||
| * | switch to SmallPtrSet instead of std::set, saving 1K from the | Chris Lattner | 2009-09-20 | 1 | -4/+4 |
| | | | | | | | release-asserts .o file (72900->71856). llvm-svn: 82364 | ||||
| * | change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%. | Chris Lattner | 2009-09-20 | 1 | -1/+2 |
| | | | | | llvm-svn: 82363 | ||||
| * | Several changes together in a murky mess: | Chris Lattner | 2009-09-20 | 1 | -84/+102 |
| | | | | | | | | | | | | | 1. Change some "\n" -> '\n'. 2. eliminte some std::string's by using raw_ostream::indent. 3. move a bunch of code out of the main arg parser routine into a new static HandlePrefixedOrGroupedOption function. 4. Greatly simplify the implementation of getOptionPred, and make it avoid splitting prefix options at = when that doesn't match a non-prefix option. llvm-svn: 82362 | ||||
| * | Clean up the usage of evaluateICmpRelation's return value. | Nick Lewycky | 2009-09-20 | 2 | -37/+31 |
| | | | | | | | | Add another line to the ConstantExprFold test to demonstrate the GEPs may not wrap around in either the signed or unsigned senses. llvm-svn: 82361 | ||||
| * | Fix refacto, this code was expecting to stride past the argument prefix. | Daniel Dunbar | 2009-09-20 | 1 | -0/+1 |
| | | | | | llvm-svn: 82360 | ||||
| * | Strip trailing whitespace. | Daniel Dunbar | 2009-09-20 | 1 | -41/+41 |
| | | | | | llvm-svn: 82359 | ||||
| * | A few more tabs -> spaces. | Daniel Dunbar | 2009-09-20 | 2 | -6/+6 |
| | | | | | llvm-svn: 82358 | ||||
| * | Remove dead store by taking a guess at what Chris meant. I wasn't able to | Nick Lewycky | 2009-09-20 | 1 | -2/+1 |
| | | | | | | | design a testcase that would tickle this behaviour. llvm-svn: 82357 | ||||
| * | Still one more thing wrong here... | Bill Wendling | 2009-09-20 | 1 | -0/+5 |
| | | | | | llvm-svn: 82356 | ||||
| * | Tabs -> spaces, and remove trailing whitespace. | Daniel Dunbar | 2009-09-20 | 19 | -1235/+1234 |
| | | | | | llvm-svn: 82355 | ||||
| * | Here's fun! It turns out that these filter functions can be internal. If they're | Bill Wendling | 2009-09-20 | 2 | -7/+2 |
| | | | | | | | | | internal, they shouldn't use the indirect pointer stuff. In the case of throw_rethrow_test, it was marked as 'internal' and calculated its own offset to its contents. llvm-svn: 82354 | ||||
| * | Delete dead code. sext and zext can not turn integers into pointers. Further, | Nick Lewycky | 2009-09-20 | 1 | -15/+0 |
| | | | | | | | the optimization described in the comment is only valid with target data. llvm-svn: 82353 | ||||
| * | convert argname to StringRef, simplifying LookupOption. | Chris Lattner | 2009-09-20 | 1 | -21/+22 |
| | | | | | llvm-svn: 82352 | ||||
| * | convert 'Value' to StringRef which makes it easier to | Chris Lattner | 2009-09-20 | 1 | -12/+8 |
| | | | | | | | maintain the "null is unspecified, empty is empty" semantics. llvm-svn: 82351 | ||||
| * | Change CommaSeparated processing to do it with StringRef instead of ↵ | Chris Lattner | 2009-09-20 | 1 | -21/+26 |
| | | | | | | | | | temporary std::strings. This requires StringRef'izing ProvideOption which I also did. llvm-svn: 82350 | ||||
| * | Value* were never meant to be const. Removing constness from the constant | Nick Lewycky | 2009-09-20 | 2 | -184/+151 |
| | | | | | | | | folder removes a lot of const_casting and requires no changes to clang or llvm-gcc. llvm-svn: 82349 | ||||
| * | rewrite ParseCStringVector in terms of stringref. | Chris Lattner | 2009-09-20 | 1 | -33/+22 |
| | | | | | llvm-svn: 82348 | ||||
| * | move a couple non-trivial methods out of line, add new | Chris Lattner | 2009-09-20 | 2 | -39/+94 |
| | | | | | | | find_first_of/find_first_of methods. llvm-svn: 82347 | ||||
| * | coding style cleanup | Chris Lattner | 2009-09-20 | 1 | -13/+12 |
| | | | | | llvm-svn: 82346 | ||||
| * | convert a bunch more stuff to use StringRef. The ArgName arguments are now | Chris Lattner | 2009-09-20 | 2 | -47/+46 |
| | | | | | | | | | stringref because they may not be nul terminated. For options like -Lfoo this now avoids a O(n) temporary std::strings where N is the length of the string after -L. llvm-svn: 82345 | ||||
| * | switch command line 'parse' methods to use StringRef for efficiency, which | Chris Lattner | 2009-09-20 | 2 | -13/+12 |
| | | | | | | | is also required for an llvm-side change. llvm-svn: 82344 | ||||
| * | add size_t and a version of rfind that allows specification of where | Chris Lattner | 2009-09-20 | 1 | -3/+9 |
| | | | | | | | to scan from. llvm-svn: 82343 | ||||
| * | When computing live intervals for earlyclobber operands, | Dale Johannesen | 2009-09-20 | 2 | -3/+31 |
| | | | | | | | | | | | we pushed the beginning of the interval back 1, so the interval would overlap with inputs that die. We were also pushing the end of the interval back 1, though, which means the earlyclobber didn't overlap with other output operands. Don't do this. PR 4964. llvm-svn: 82342 | ||||
| * | avoid a bunch of malloc thrashing for PositinoalVals by eliminating | Chris Lattner | 2009-09-20 | 1 | -11/+9 |
| | | | | | | | a std::vector and a bunch of std::string temporaries. llvm-svn: 82341 | ||||
| * | Teach the constant folder how to handle a few simple i1 cases. | Nick Lewycky | 2009-09-20 | 2 | -0/+56 |
| | | | | | llvm-svn: 82340 | ||||
| * | Avoid some temporary strings. | Chris Lattner | 2009-09-19 | 1 | -19/+6 |
| | | | | | llvm-svn: 82339 | ||||
| * | add some more overloads of StringRef::getAsInteger for | Chris Lattner | 2009-09-19 | 2 | -1/+48 |
| | | | | | | | common and useful integer types. llvm-svn: 82338 | ||||
| * | add a simple c_str() method to SmallString. | Chris Lattner | 2009-09-19 | 1 | -0/+6 |
| | | | | | llvm-svn: 82337 | ||||
| * | Revert r82274. It's causing failures in the CINT2006 benchmarks. | Bill Wendling | 2009-09-19 | 1 | -0/+6 |
| | | | | | llvm-svn: 82336 | ||||
| * | Prefer super class constructor to explicit initialization. | Daniel Dunbar | 2009-09-19 | 1 | -7/+4 |
| | | | | | llvm-svn: 82335 | ||||
| * | Tabs -> spaces (really?) | Daniel Dunbar | 2009-09-19 | 1 | -4/+4 |
| | | | | | llvm-svn: 82334 | ||||
| * | Fix indentation. | Daniel Dunbar | 2009-09-19 | 1 | -76/+76 |
| | | | | | llvm-svn: 82333 | ||||
| * | Strip trailing whitespace. | Daniel Dunbar | 2009-09-19 | 4 | -122/+122 |
| | | | | | llvm-svn: 82332 | ||||
| * | RHS of assignment should be const reference. | Daniel Dunbar | 2009-09-19 | 1 | -1/+1 |
| | | | | | llvm-svn: 82331 | ||||
| * | Remove the default value for ConstantStruct::get's isPacked parameter and | Nick Lewycky | 2009-09-19 | 4 | -10/+11 |
| | | | | | | | update the code which was broken by this. llvm-svn: 82327 | ||||
| * | Ok, an AssertingVH definitely doesn't work for now because we free our cache ↵ | Daniel Dunbar | 2009-09-19 | 2 | -4/+7 |
| | | | | | | | after the optimizer may have hacked on the module. Use a WeakVH instead. llvm-svn: 82324 | ||||
| * | Make clang stop relying on ConstantStruct::get's default value for isPacked | Nick Lewycky | 2009-09-19 | 4 | -19/+21 |
| | | | | | | | which will be going away (ie. it's becoming a required parameter) later today. llvm-svn: 82323 | ||||
| * | provide a "strtoull" operation that works on StringRef's. | Chris Lattner | 2009-09-19 | 2 | -0/+80 |
| | | | | | llvm-svn: 82322 | ||||
| * | Switch CGDebugInfo type cache to using an AssertingVH. | Daniel Dunbar | 2009-09-19 | 2 | -19/+23 |
| | | | | | llvm-svn: 82321 | ||||
| * | Factor out CGDebugInfo::CreateTypeNode method. | Daniel Dunbar | 2009-09-19 | 2 | -24/+38 |
| | | | | | | | - No functionality change. llvm-svn: 82320 | ||||
| * | Add a comment explaining why you would ever want to do this. | Nick Lewycky | 2009-09-19 | 1 | -0/+3 |
| | | | | | llvm-svn: 82319 | ||||
| * | convert a bunch of std::strings to use StringRef. This should eliminate | Chris Lattner | 2009-09-19 | 2 | -76/+78 |
| | | | | | | | | a massive number of temporary strings created when parsing a command line. More still left to eliminate. llvm-svn: 82318 | ||||
| * | Lett users of sparse propagation do their own thing with phi nodes if they want | Nick Lewycky | 2009-09-19 | 2 | -0/+13 |
| | | | | | | | | to. This can be combined with LCSSA or SSI form to store more information on a PHINode than can be computed by looking at its incoming values. llvm-svn: 82317 | ||||
| * | The flag "--dot-cfg-only" is at the moment equivalent to the flag "--dot-cfg". | Duncan Sands | 2009-09-19 | 1 | -1/+1 |
| | | | | | | | | It prints the content of all bbs, instead of printing empty bbs to make the CFG more readable. Fix this. Patch by Tobias Grosser. llvm-svn: 82315 | ||||
| * | Fix funky comments. | Evan Cheng | 2009-09-19 | 1 | -5/+5 |
| | | | | | llvm-svn: 82314 | ||||
| * | Update comments. | Evan Cheng | 2009-09-19 | 1 | -0/+3 |
| | | | | | llvm-svn: 82313 | ||||
| * | Try to speed up the slowest parts of the CommandLine library | Benjamin Kramer | 2009-09-19 | 1 | -28/+28 |
| | | | | | | | | | - Replace std::map<std::string with StringMap - Eliminate unnecessary std::string copies - ~10% speed-up for clang's testsuite on my machine (debug build) llvm-svn: 82312 | ||||
| * | Fix PR4926. When target hook EmitInstrWithCustomInserter() insert new basic ↵ | Evan Cheng | 2009-09-19 | 13 | -35/+126 |
| | | | | | | | blocks and update CFG, it should also inform sdisel of the changes so the phi source operands will come from the right basic blocks. llvm-svn: 82311 | ||||
| * | Simplify code with a StringRef. | Benjamin Kramer | 2009-09-19 | 1 | -7/+2 |
| | | | | | llvm-svn: 82308 | ||||

