[PATCH] D26930: Teach optimizer that pthread_self does not trap. It can be speculatively executed.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 15:17:57 PST 2016
joerg added a comment.
Well, readnone functions are safe to speculatively execute. The question is if pthread_self() does qualify for it, since strictly it does read global memory. My problem with this change is that this seems to add a very stricted form of readnone in a non-systematic and adhoc fashion.
Repository:
rL LLVM
https://reviews.llvm.org/D26930
More information about the llvm-commits
mailing list