Skip to content

Unreachable in AArch64LoadStoreOptimizer (Opcode has no post-indexed wise equivalent!) #33382

@bogner

Description

@bogner
Bugzilla Link 34035
Resolution FIXED
Resolved on Aug 18, 2017 13:25
Version trunk
OS All
Blocks #33196
CC @RKSimon,@TNorthover

Extended Description

Given a silly GEP index (of -1), we can hit an unreachable in AArch64LoadStoreOptimizer. Repros with llc -o - bug.ll.

target triple = "arm64-apple-ios"

define void @​bug() {
%xP16x4 = alloca <4 x i16>, align 8
%__a = alloca <4 x i16>, align 8
%__b = alloca <4 x i16>, align 8
%G = getelementptr <4 x i16>, <4 x i16>* %__b, i32 -1
store <4 x i16> zeroinitializer, <4 x i16>* %G, align 8
ret void
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions