It's possible that an all-zero GEP may be used as the argument to lifetime
authorNick Lewycky <nicholas@mxc.ca>
Mon, 13 Jun 2011 07:52:46 +0000 (07:52 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 13 Jun 2011 07:52:46 +0000 (07:52 +0000)
commit9a488a831784c71acf552d9630a6c25ce8d3c3e9
tree8939d6c284832cee3620ab37caa68632f5d885f9
parent5e5ed4457749995b46d46e9769e657fcc0818e2c
It's possible that an all-zero GEP may be used as the argument to lifetime
intrinsics. In fact, we'll optimize a bitcast to that when possible. Detect it
when looking for the lifetime intrinsics.

No test case, noticed by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132906 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp