Revert D84057 "[PGO][PGSO] Remove a temporary flag used for gradual rollout."
authorFangrui Song <maskray@google.com>
Wed, 22 Jul 2020 21:28:28 +0000 (14:28 -0700)
committerFangrui Song <maskray@google.com>
Wed, 22 Jul 2020 21:28:28 +0000 (14:28 -0700)
commitdbdda8232a932f0379caf48f6fece613257381b3
treedb1719ee5972f8b5e43f7564f083d795b8fd30a7
parentae35c09c34f0d2701c01d3ebacd0d56163cfbe0b
Revert D84057 "[PGO][PGSO] Remove a temporary flag used for gradual rollout."

This reverts commit e64afefdf88d2607c476f13de05193c0f8991976. It caused
a PGO bootstrapped clang to crash on many source files.

`__llvm_profile_instrument_range` seems to trigger a null pointer dereference.

Call stack:
__llvm_profile_instrument_range
llvm::APInt::udiv(llvm::APInt const&) const
getRangeForAffineARHelper
llvm/include/llvm/Transforms/Utils/SizeOpts.h
llvm/lib/Transforms/Utils/SizeOpts.cpp