]> granicus.if.org Git - llvm/commit
Remove gc.root's findCustomSafePoints mechanism
authorPhilip Reames <listmail@philipreames.com>
Fri, 16 Jan 2015 19:33:28 +0000 (19:33 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 16 Jan 2015 19:33:28 +0000 (19:33 +0000)
commit8a660bd82209b93eaf2e2001905d6fcbdf006720
tree69f42ba31f11ee5d03528d130ed42bd0a5c2b6a8
parent3cec3682bb89e38ce98cbe015e0c807b9078aac7
Remove gc.root's findCustomSafePoints mechanism

Searching all of the existing gc.root implementations I'm aware of (all three of them), there was exactly one use of this mechanism, and that was to implement a performance improvement that should have been applied to the default lowering.

Having this function is requiring a dependency on a CodeGen class (MachineFunction), in a class which is otherwise completely independent of CodeGen. I could solve this differently, but given that I see absolutely no value in preserving this mechanism, I going to just get rid of it.

Note: Tis is the first time I'm intentionally breaking previously supported gc.root functionality. Given 3.6 has branched, I believe this is a good time to do this.

Differential Revision: http://reviews.llvm.org/D7004

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GCStrategy.h
lib/CodeGen/ErlangGC.cpp
lib/CodeGen/GCRootLowering.cpp
lib/CodeGen/GCStrategy.cpp
lib/CodeGen/StatepointExampleGC.cpp