diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-01-20 08:34:58 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-20 08:34:58 +0000 |
| commit | b8b0ad80a8969d59d481c98d329de38171086c8a (patch) | |
| tree | f3f1363f23731e9f831d9ca3441be7fec37e48af /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | 4e81961a1e24aff155ef981f14ac84e2cd1f7de7 (diff) | |
| download | bcm5719-llvm-b8b0ad80a8969d59d481c98d329de38171086c8a.tar.gz bcm5719-llvm-b8b0ad80a8969d59d481c98d329de38171086c8a.zip | |
Sorry, several patches in one.
TargetInstrInfo:
Change produceSameValue() to take MachineRegisterInfo as an optional argument.
When in SSA form, targets can use it to make more aggressive equality analysis.
Machine LICM:
1. Eliminate isLoadFromConstantMemory, use MI.isInvariantLoad instead.
2. Fix a bug which prevent CSE of instructions which are not re-materializable.
3. Use improved form of produceSameValue.
ARM:
1. Teach ARM produceSameValue to look pass some PIC labels.
2. Look for operands from different loads of different constant pool entries
which have same values.
3. Re-implement PIC GA materialization using movw + movt. Combine the pair with
a "add pc" or "ldr [pc]" to form pseudo instructions. This makes it possible
to re-materialize the instruction, allow machine LICM to hoist the set of
instructions out of the loop and make it possible to CSE them. It's a bit
hacky, but it significantly improve code quality.
4. Some minor bug fixes as well.
With the fixes, using movw + movt to materialize GAs significantly outperform the
load from constantpool method. 186.crafty and 255.vortex improved > 20%, 254.gap
and 176.gcc ~10%.
llvm-svn: 123905
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
0 files changed, 0 insertions, 0 deletions

