forked from OSchip/llvm-project
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll
llvm-svn: 35689
This commit is contained in:
parent
cf1f986099
commit
1a9a760318
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue