forked from OSchip/llvm-project
parent
94dc1e0d34
commit
aeb85934b6
|
@ -466,7 +466,7 @@ bool ShrinkWrap::isShrinkWrapEnabled(const MachineFunction &MF) {
|
||||||
switch (EnableShrinkWrapOpt) {
|
switch (EnableShrinkWrapOpt) {
|
||||||
case cl::BOU_UNSET:
|
case cl::BOU_UNSET:
|
||||||
return TFI->enableShrinkWrapping(MF) &&
|
return TFI->enableShrinkWrapping(MF) &&
|
||||||
// Windows with CFI has some limitations that makes it impossible
|
// Windows with CFI has some limitations that make it impossible
|
||||||
// to use shrink-wrapping.
|
// to use shrink-wrapping.
|
||||||
!MF.getTarget().getMCAsmInfo()->usesWindowsCFI();
|
!MF.getTarget().getMCAsmInfo()->usesWindowsCFI();
|
||||||
// If EnableShrinkWrap is set, it takes precedence on whatever the
|
// If EnableShrinkWrap is set, it takes precedence on whatever the
|
||||||
|
|
Loading…
Reference in New Issue