Extended Description
opt -S -o - bbi-14805.ll -disable-basicaa -loop-versioning
gives
Instruction does not dominate all uses!
%inc = add nsw i16 undef, 1
store i16 %inc, i16* @c, align 1
LLVM ERROR: Broken function found, compilation aborted!
Found when running random passes/flags on random input. We don't normally use -disable-basicaa -loop-versioning.
This happens also with some old opt binary built in Nov 2016.