[llvm] r294027 - [SLP] Use SCEV to sort memory accesses.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 13:37:16 PST 2017


On Fri, Feb 03, 2017 at 07:09:45PM -0000, Michael Kuperstein via llvm-commits wrote:
> Author: mkuper
> Date: Fri Feb  3 13:09:45 2017
> New Revision: 294027
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=294027&view=rev
> Log:
> [SLP] Use SCEV to sort memory accesses.

I'm seeing compilation crashes with this change. One example is
attached, -O2 is enough to hit it.

Joerg
-------------- next part --------------
typedef struct {
  int bitrate;
  int reaction_delay_factor;
  int averaging_period;
  int buffer
} xvid_plugin_single_t;
typedef struct {
  int reaction_delay_factor;
  int averaging_period;
  int buffer;
  int bytes_per_sec
} rc_single_t;
rc_single_t a;
fn1() {
  xvid_plugin_single_t *b = fn1;
  a.bytes_per_sec = b->bitrate > 0 ? 8 : 0;
  a.reaction_delay_factor =
      b->reaction_delay_factor > 0 ? b->reaction_delay_factor : 6;
  a.averaging_period = b->averaging_period > 0 ? fn1 : 0;
  a.buffer = b->buffer > 0 ? fn1 : 0;
}


More information about the llvm-commits mailing list