Skip to content

"Instruction does not dominate all uses" with opt -disable-basicaa -loop-versioning #36998

@mikaelholmen

Description

@mikaelholmen
Bugzilla Link 37650
Version unspecified
OS Linux
Attachments reproducer

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.

Metadata

Metadata

Labels

bugzillaIssues migrated from bugzillacrashPrefer [crash-on-valid] or [crash-on-invalid]llvm:transforms

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions