diff options
| author | Duncan Sands <baldrick@free.fr> | 2011-01-01 16:12:09 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2011-01-01 16:12:09 +0000 |
| commit | e3c539581c813a2de1d7feebaaa8f92dcc697c6b (patch) | |
| tree | 73501cf16d8a7af79e941867a184e80d77ca413c /llvm/lib/Target | |
| parent | 5451fc9195491caa43ab29aae97718d44abdfa3d (diff) | |
| download | bcm5719-llvm-e3c539581c813a2de1d7feebaaa8f92dcc697c6b.tar.gz bcm5719-llvm-e3c539581c813a2de1d7feebaaa8f92dcc697c6b.zip | |
Fix a README item by having InstructionSimplify do a mild form of value
numbering, in which it considers (for example) "%a = add i32 %x, %y" and
"%b = add i32 %x, %y" to be equal because the operands are equal and the
result of the instructions only depends on the values of the operands.
This has almost no effect (it removes 4 instructions from gcc-as-one-file),
and perhaps slows down compilation: I measured a 0.4% slowdown on the large
gcc-as-one-file testcase, but it wasn't statistically significant.
llvm-svn: 122654
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/README.txt | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index ec5c412765f..c9561660b1c 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -2065,14 +2065,3 @@ entry: } //===---------------------------------------------------------------------===// - -This compare could fold to false: - -define i1 @g(i32 a) nounwind readnone { - %add = shl i32 %a, 1 - %mul = shl i32 %a, 1 - %cmp = icmp ugt i32 %add, %mul - ret i1 %cmp -} - -//===---------------------------------------------------------------------===// |

