Skip to content
Commit 022cc6c4 authored by Alexey Bataev's avatar Alexey Bataev
Browse files

[SLP] Fix crash on propagate IR flags for undef operands of min/max

reductions.

If both operands of the newly created SelectInst are Undefs the
resulting operation is also Undef, not SelectInst. It may cause crashes
when trying to propagate IR flags because function expects exactly
SelectInst instruction, nothing else.

llvm-svn: 314323
parent a2eacb3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment