This diff is from Philip Guenther (guenther@openbsd.org)
and got committed to the OpenBSD tree, see http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp?rev=1.3&content-type=text/x-cvsweb-markup
and http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp.diff?r1=1.2&r2=1.3&f=h
This repairs my previous patch (https://reviews.llvm.org/rL279449) that
missed the fact that removing visibility diff results accesses to
the stack protector look like this:
two loads
movq __guard_local@GOTPCREL(%rip), %rbx
movq (%rbx), %rax
But better is one load only, which is what Philip's diff achieves
movq __guard_local(%rip), %rax