You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gvn pass cannot handle the indirectbr instruction with more than one destination. It hits an assertion in llvm::SplitKnownCriticalEdge trying to add a "dead" block after the indirectbr.
The newgvn pass works fine.
Reproducer:
definevoid@foo(i1%cmp) {
first:
bri1%cmp, label%exit, label%second
second:
bri1%cmp, label%ibr, label%exit; cmp must be false to reach this, branch to ibr never taken
ibr: ; this block is deadindirectbrptrblockaddress(@foo, %exit), [label%exit, label%exit] ; double label required, works with just one
exit:
retvoid
}