Hi,
I believe this following restriction for protected branches has been added recently on GitHub:
Require linear history
Prevent merge commits from being pushed to matching branches.
I guess this will be useful to enabled that for master branch of llvm-project.
Bests,
Paweł