SROA: Avoid creating a fragment expression that covers the entire variable.
authorAdrian Prantl <aprantl@apple.com>
Tue, 28 Nov 2017 00:57:53 +0000 (00:57 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 28 Nov 2017 00:57:53 +0000 (00:57 +0000)
commitd7f6f1636d53c3e2faf55cdf20fbb44a1a149df1
treea900b43204f48973891654562ad894f5309a55ce
parent3e0e1d093435d753f66c51820f49528b91522743
SROA: Avoid creating a fragment expression that covers the entire variable.

Fixes PR35416.

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

llvm-svn: 319126
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/DebugInfo/Generic/sroa-samesize.ll [new file with mode: 0644]