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 | 7cf85e74e3885005ca8e5fdb155fa5351e255b85 (patch) | |
tree | a2849e3f74b4753e12d33981b7d3aa62256efdbf /lib/MC/ELFObjectWriter.cpp | |
parent | c88e91b875fc85ecc3e0d0f51b4a71dca9f29012 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions