HomePhabricator

[SROA] Fix crash with lifetime intrinsic partially covering alloca.

Description

[SROA] Fix crash with lifetime intrinsic partially covering alloca.

Summary:
PromoteMemToReg looks specifically for the pattern
bitcast+lifetime.start (or a bitcast-equivalent GEP); any offset
will lead to an assertion failure.

Fixes https://llvm.org/bugs/show_bug.cgi?id=27999 .

Differential Revision: https://reviews.llvm.org/D22737

Details

Committed
efriedmaAug 7 2016, 6:30 PM
Differential Revision
D22737: [SROA] Fix crash with lifetime intrinsic partially covering alloca.
Parents
rL277968: [libcxx] Add "flag" default arg: basic_regex ptr_size_flag ctor
Branches
Unknown
Tags
Unknown