diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-08 23:43:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-08 23:43:58 +0000 |
commit | 39c98bb31cc4199ec0af75ac0fdf3f90bf98771b (patch) | |
tree | 9f8ab8467278cea93fba87016699410ac6cbfbf4 /llvm/lib/Bytecode | |
parent | b1ff6d792185215aa9030645a839f0fe12c4710a (diff) | |
download | bcm5719-llvm-39c98bb31cc4199ec0af75ac0fdf3f90bf98771b.tar.gz bcm5719-llvm-39c98bb31cc4199ec0af75ac0fdf3f90bf98771b.zip |
Do extremely simple sinking of instructions when they are only used in a
successor block. This turns cases like this:
x = a op b
if (c) {
use x
}
into:
if (c) {
x = a op b
use x
}
This triggers 3965 times in spec, and is tested by
Regression/Transforms/InstCombine/sink_instruction.ll
This appears to expose a bug in the X86 backend for 177.mesa, which I'm
looking in to.
llvm-svn: 18677
Diffstat (limited to 'llvm/lib/Bytecode')
0 files changed, 0 insertions, 0 deletions