Fix Transforms/GlobalOpt/2007-04-05-Crash.ll

llvm-svn: 35689
This commit is contained in:
Chris Lattner 2007-04-05 21:09:42 +00:00
parent cf1f986099
commit 1a9a760318
1 changed files with 1 additions and 1 deletions

View File

@ -1347,7 +1347,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
if (GV->getType()->getElementType() != Type::Int1Ty &&
!GV->getType()->getElementType()->isFloatingPoint() &&
!isa<VectorType>(GV->getType()->getElementType()) &&
!GS.HasPHIUser) {
!GS.HasPHIUser && !GS.isNotSuitableForSRA) {
DOUT << " *** SHRINKING TO BOOL: " << *GV;
ShrinkGlobalToBoolean(GV, SOVConstant);
++NumShrunkToBool;