We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc02728 + e0d94d6 commit 98ef683Copy full SHA for 98ef683
lib/SILOptimizer/Utils/Local.cpp
@@ -1330,12 +1330,12 @@ bool swift::simplifyUsers(SingleValueInstruction *I) {
1330
/// True if a type can be expanded
1331
/// without a significant increase to code size.
1332
bool swift::shouldExpand(SILModule &Module, SILType Ty) {
1333
- if (EnableExpandAll) {
1334
- return true;
1335
- }
1336
if (Ty.isAddressOnly(Module)) {
1337
return false;
1338
}
+ if (EnableExpandAll) {
+ return true;
+ }
1339
unsigned numFields = Module.Types.countNumberOfFields(Ty);
1340
if (numFields > 6) {
1341
0 commit comments