mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1347,7 +1347,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
|
|||||||
if (GV->getType()->getElementType() != Type::Int1Ty &&
|
if (GV->getType()->getElementType() != Type::Int1Ty &&
|
||||||
!GV->getType()->getElementType()->isFloatingPoint() &&
|
!GV->getType()->getElementType()->isFloatingPoint() &&
|
||||||
!isa<VectorType>(GV->getType()->getElementType()) &&
|
!isa<VectorType>(GV->getType()->getElementType()) &&
|
||||||
!GS.HasPHIUser) {
|
!GS.HasPHIUser && !GS.isNotSuitableForSRA) {
|
||||||
DOUT << " *** SHRINKING TO BOOL: " << *GV;
|
DOUT << " *** SHRINKING TO BOOL: " << *GV;
|
||||||
ShrinkGlobalToBoolean(GV, SOVConstant);
|
ShrinkGlobalToBoolean(GV, SOVConstant);
|
||||||
++NumShrunkToBool;
|
++NumShrunkToBool;
|
||||||
|
|||||||
Reference in New Issue
Block a user