[PlaceSafepoints] Stop special casing some intrinsics
authorPhilip Reames <listmail@philipreames.com>
Tue, 19 May 2015 23:40:11 +0000 (23:40 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 19 May 2015 23:40:11 +0000 (23:40 +0000)
commita5703bc52e0196e8ef560a488d8fab500dfb8507
tree5e1ff05f9598bbf808d128dfbf7a18f935a15325
parent4bc9d4ea2648db800f0d89adc73bd43e91fc6dcf
[PlaceSafepoints] Stop special casing some intrinsics

We were special casing a handful of intrinsics as not needing a safepoint before them.  After running into another valid case - memset - I took a closer look and realized that almost no intrinsics need to have a safepoint poll before them.  Restructure the code to make that apparent so that we stop hitting these bugs.  The only intrinsics which need a safepoint poll before them are ones which can run arbitrary code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237744 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PlaceSafepoints.cpp
test/Transforms/PlaceSafepoints/memset.ll [new file with mode: 0644]