- Apr 16, 2003
-
-
Chris Lattner authored
llvm-svn: 5786
-
Chris Lattner authored
llvm-svn: 5782
-
Chris Lattner authored
llvm-svn: 5781
-
- Apr 15, 2003
-
-
Chris Lattner authored
llvm-svn: 5777
-
- Apr 13, 2003
-
-
Chris Lattner authored
llvm-svn: 5775
-
- Apr 10, 2003
-
-
Chris Lattner authored
* Make Mem2Reg assign version numbers now for renamed variables instead of .mem2reg suffixes. This produces what people think of as SSA. llvm-svn: 5771
-
Misha Brukman authored
look nicer and removed useless stuff. Also renamed a few variables, moved them into namespaces, converted outputting to a file into a print to std::cerr with a DEBUG() guard, as all passes should do anyway. No functional changes have been made. However, this code now compiles. llvm-svn: 5769
-
- Apr 09, 2003
-
-
Misha Brukman authored
* Lines must be wrapped at 80 chars. This is a hard limit. * Consistent style on functions, braces, if, for, etc. Code must be readable. No functional changes have been made, even though I added a new typedef. llvm-svn: 5768
-
- Apr 07, 2003
-
-
Guochun Shi authored
llvm-svn: 5764
-
- Apr 01, 2003
-
-
Chris Lattner authored
llvm-svn: 5763
-
- Mar 31, 2003
-
-
Chris Lattner authored
several ways: * Load expressions are not PRE'd well. Alias Analysis should be used to get accurate information when computing anticipatibility. * The expression collection implementation does not handle PHI nodes properly, thus the implementation misses many opportunities to PRE. * This code could be sped up quite a bit Despite these flaws, the code seems to work well, and handles PR's as one would expect. llvm-svn: 5759
-
Chris Lattner authored
* Small modification to be more efficient llvm-svn: 5757
-
- Mar 27, 2003
-
-
Guochun Shi authored
llvm-svn: 5755
-
- Mar 21, 2003
-
-
Chris Lattner authored
llvm-svn: 5754
-
Chris Lattner authored
llvm-svn: 5753
-
- Mar 19, 2003
-
-
Chris Lattner authored
* Add support for implicit zero initializers llvm-svn: 5750
-
Chris Lattner authored
- Null values are implicitly encoded instead of explicitly, this makes things more compact! - More compactly represent ConstantPointerRefs - Bytecode files are represented as: Header|GlobalTypes|GlobalVars/Function Protos|Constants|Functions|SymTab instead of Header|GlobalTypes|Constants|GlobalVars/Function Protos|Functions|SymTab which makes a lot of things simpler. Writer changes: - We now explictly encode versioning information in the bytecode files. - This allows new code to read bytecode files produced by old code, but new bytecode files can have enhancements such as the above. Although this makes the reader a bit more complex (having to deal with old formats), the writer only needs to be able to produce the most recent version. llvm-svn: 5749
-
Chris Lattner authored
- Fix problems where the constant table would not get updated when resolving constants causes other constants to change. Changes to the V2 bytecode format - Null values are implicitly encoded instead of explicitly, this makes things more compact! - More compactly represent ConstantPointerRefs - Bytecode files are represented as: Header|GlobalTypes|GlobalVars/Function Protos|Constants|Functions|SymTab instead of Header|GlobalTypes|Constants|GlobalVars/Function Protos|Functions|SymTab which makes a lot of things simpler. Changes to the reader: - Function loading code is much simpler. We now no longer make function PlaceHolderHelper objects to be replaced with real functions. llvm-svn: 5748
-
- Mar 11, 2003
-
-
Chris Lattner authored
- Implement simple reassociation: (A|c1)|(B|c2) == (A|B)|(c1|c2) - (A & C1)+(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0 - (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0 llvm-svn: 5743
-
Chris Lattner authored
llvm-svn: 5740
-
Chris Lattner authored
llvm-svn: 5738
-
Chris Lattner authored
Generalize not and neg comparison testers to allow constant to be considered not'able and neg'able. This allows optimization of this: int %test4(int %A, int %B) { %a = xor int %A, -1 %c = and int %a, 5 ; 5 = ~c2 %d = xor int %c, -1 ret int %d } into this: int %test4(int %A, int %B) { ; No predecessors! %c.demorgan = or int %A, -6 ; <int> [#uses=1] ret int %c.demorgan } llvm-svn: 5736
-
- Mar 10, 2003
-
-
Chris Lattner authored
llvm-svn: 5734
-
Chris Lattner authored
llvm-svn: 5733
-
Chris Lattner authored
llvm-svn: 5731
-
Chris Lattner authored
Implement new shift optimizations for shifting the result of a shift. llvm-svn: 5729
-
Chris Lattner authored
llvm-svn: 5728
-
- Mar 07, 2003
-
-
Chris Lattner authored
llvm-svn: 5722
-
Chris Lattner authored
llvm-svn: 5720
-
- Mar 06, 2003
-
-
Chris Lattner authored
Extend getNullValue to work with struct and array types llvm-svn: 5718
-
Chris Lattner authored
llvm-svn: 5716
-
Chris Lattner authored
llvm-svn: 5715
-
Chris Lattner authored
llvm-svn: 5714
-
Chris Lattner authored
llvm-svn: 5713
-
Chris Lattner authored
llvm-svn: 5712
-
Chris Lattner authored
llvm-svn: 5710
-
Chris Lattner authored
llvm-svn: 5708
-
- Mar 05, 2003
-
-
Chris Lattner authored
llvm-svn: 5704
-
Chris Lattner authored
llvm-svn: 5702
-
Chris Lattner authored
llvm-svn: 5700
-