Revert "[cpu] Modify inductor opt flag --- ftree-loop-vectorize (#136827)"

This reverts commit cf0bb6c435c58db4c72e489f462e1a0ebe310f14.

Reverted https://github.com/pytorch/pytorch/pull/136827 on behalf of https://github.com/ZainRizvi due to Sorry but this breaks internally. See D65605094 for more details ([comment](https://github.com/pytorch/pytorch/pull/136827#issuecomment-2465805271))
This commit is contained in:
PyTorch MergeBot
2024-11-08 21:52:33 +00:00
parent a7724518c0
commit 347f96061f

View File

@ -545,8 +545,6 @@ def _get_optimization_cflags() -> List[str]:
cflags.append("ffp-contract=off")
if sys.platform != "darwin":
# on macos, unknown argument: '-fno-tree-loop-vectorize'
cflags.append("fno-tree-loop-vectorize")
# https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1
# `-march=native` is unrecognized option on M1
if not config.is_fbcode():