File tree Expand file tree Collapse file tree 2 files changed +0
-53
lines changed
test/Transforms/Attributor Expand file tree Collapse file tree 2 files changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -5166,25 +5166,13 @@ ChangeStatus AAHeapToStackImpl::updateImpl(Attributor &A) {
5166
5166
}
5167
5167
5168
5168
if (IsMalloc) {
5169
- if (MaxHeapToStackSize == -1 ) {
5170
- if (UsesCheck (I) || FreeCheck (I)) {
5171
- MallocCalls.insert (&I);
5172
- return true ;
5173
- }
5174
- }
5175
5169
if (auto *Size = dyn_cast<ConstantInt>(I.getOperand (0 )))
5176
5170
if (Size->getValue ().ule (MaxHeapToStackSize))
5177
5171
if (UsesCheck (I) || FreeCheck (I)) {
5178
5172
MallocCalls.insert (&I);
5179
5173
return true ;
5180
5174
}
5181
5175
} else if (IsAlignedAllocLike && isa<ConstantInt>(I.getOperand (0 ))) {
5182
- if (MaxHeapToStackSize == -1 ) {
5183
- if (UsesCheck (I) || FreeCheck (I)) {
5184
- MallocCalls.insert (&I);
5185
- return true ;
5186
- }
5187
- }
5188
5176
// Only if the alignment and sizes are constant.
5189
5177
if (auto *Size = dyn_cast<ConstantInt>(I.getOperand (1 )))
5190
5178
if (Size->getValue ().ule (MaxHeapToStackSize))
@@ -5193,12 +5181,6 @@ ChangeStatus AAHeapToStackImpl::updateImpl(Attributor &A) {
5193
5181
return true ;
5194
5182
}
5195
5183
} else if (IsCalloc) {
5196
- if (MaxHeapToStackSize == -1 ) {
5197
- if (UsesCheck (I) || FreeCheck (I)) {
5198
- MallocCalls.insert (&I);
5199
- return true ;
5200
- }
5201
- }
5202
5184
bool Overflow = false ;
5203
5185
if (auto *Num = dyn_cast<ConstantInt>(I.getOperand (0 )))
5204
5186
if (auto *Size = dyn_cast<ConstantInt>(I.getOperand (1 )))
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments