diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-03-10 23:06:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-03-10 23:06:50 +0000 |
| commit | bb74e2284aa85deac0388841e6708fecaa86a2ac (patch) | |
| tree | 3ef497fc11478d98af98656db9779c9b56fc35e1 /llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp | |
| parent | f67d52d3d7572f6a601f2e40d97a3cf72ceaaa10 (diff) | |
| download | llvm-bb74e2284aa85deac0388841e6708fecaa86a2ac.zip llvm-bb74e2284aa85deac0388841e6708fecaa86a2ac.tar.gz llvm-bb74e2284aa85deac0388841e6708fecaa86a2ac.tar.bz2 | |
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
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/UserInput.cpp')
0 files changed, 0 insertions, 0 deletions
