[llvm-bugs] [Bug 33184] New: NewGVN should account for switch statements with multiple edges to themselves
llvm-bugs at lists.llvm.org
Fri May 26 12:49:34 PDT 2017
Bug ID: 33184
Summary: NewGVN should account for switch statements with
multiple edges to themselves
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: davide at freebsd.org
CC: dberlin at dberlin.org, llvm-bugs at lists.llvm.org
If switch statements with multiple edges to itself are allowed, then the
current ordering might not work.
Quoting from https://reviews.llvm.org/D24805
Do we allow switch statements with multiple edges to ourself?
switch <whatever> [
i32 0 : label bb1
i32 1: label bb1 ]
(which, after propagation, could cause a phi with different operands and the
same incoming blocks)
If so, either we need stable sorts, or a better ordering of incoming blocks,
because the pointer equality we use will not definitely sort them into a
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs