OSDN Git Service

[LVI] A better fix for the assertion error introduced by 267609
authorPhilip Reames <listmail@philipreames.com>
Tue, 26 Apr 2016 22:52:30 +0000 (22:52 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 26 Apr 2016 22:52:30 +0000 (22:52 +0000)
commit171bf705980004dac14bab988ee8eaf20d9b3d9d
tree8f7ebf1205a4a069753ca2d7768badd4fd230807
parent1f6f783d9c26bec7824da0f397848829a0e9c540
[LVI] A better fix for the assertion error introduced by 267609

Essentially, I was using the wrong size function.  For types which were sized, but not primitive, I wasn't getting a useful size for the operand and failed an assert.  I fixed this, and also added a guard that the input is a sized type.  Test case is for the original mistake.  I'm not sure how to actually exercise the sized type check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267618 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp
test/Transforms/CorrelatedValuePropagation/basic.ll