diff options
author | Duncan Sands <baldrick@free.fr> | 2010-11-16 12:16:38 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-11-16 12:16:38 +0000 |
commit | 1845009290e4d804ad377927bd8a08cca3036adc (patch) | |
tree | 159282f37ef5846586982c9760bc5874c830f23f /examples/Kaleidoscope/Chapter7 | |
parent | 2c920850343810535c0cd8720a81eddf7997663a (diff) | |
download | external_llvm-1845009290e4d804ad377927bd8a08cca3036adc.zip external_llvm-1845009290e4d804ad377927bd8a08cca3036adc.tar.gz external_llvm-1845009290e4d804ad377927bd8a08cca3036adc.tar.bz2 |
In which I discover the existence of loops. Threading an operation
over a phi node by applying it to each operand may be wrong if the
operation and the phi node are mutually interdependent (the testcase
has a simple example of this). So only do this transform if it would
be correct to perform the operation in each predecessor of the block
containing the phi, i.e. if the other operands all dominate the phi.
This should fix the FFMPEG snow.c regression reported by İsmail Dönmez.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope/Chapter7')
0 files changed, 0 insertions, 0 deletions