| commit | 39c98bb31cc4199ec0af75ac0fdf3f90bf98771b | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Wed Dec 08 23:43:58 2004 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Wed Dec 08 23:43:58 2004 +0000 |
| tree | 9f8ab8467278cea93fba87016699410ac6cbfbf4 | |
| parent | b1ff6d792185215aa9030645a839f0fe12c4710a [diff] |
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