mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll
llvm-svn: 35689
This commit is contained in:
parent
0cb31c668d
commit
19b9e90f9c
@ -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…
x
Reference in New Issue
Block a user