[PATCH] [RewriteStatepointsForGC] Exclude constant values from being considered live at a safepoint
listmail at philipreames.com
Thu Apr 23 16:31:06 PDT 2015
Upload the diff again to force an email after adding llvm-commits.
Full description copied by hand in case it doesn't get resent.
[RewriteStatepointsForGC] Exclude constant values from being considered live at a safepoint
There can be various constant pointers in the IR which do not get relocated at a safepoint. One example is the address of a global variable. Another example is a pointer created via inttoptr. Note that the optimizer itself likes to create such inttoptrs when locally propagating constants through dynamically dead code.
To deal with this, we need to exclude uses of constants from contributing to the liveness of a safepoint which might reach that use. At some later date, it might be worth exploring what could be done to support the relocation of various special types of "constants", but that's future work.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5048 bytes
Desc: not available
More information about the llvm-commits