On Wed, Nov 23, 2011 at 8:01 AM, Jeff Garzik <jeff@xxxxxxxxxx> wrote: > On 11/22/2011 03:38 PM, Pekka Enberg wrote: >> >> So pasting the above test program tohttp://llvm.org/demo/ and >> switching to "LLVM C++ API code" target seems to suggest you're >> interested in the LLVMReplaceAllUsesWith() API for forward references. > > Sent pull req via github. > > List implementation is cheesy (inefficient if list ever gets woefully large) > singly-linked list, but it is pretty simple. Turned out that postponing > LLVMAddIncoming() call works better than LLVMReplaceAllUsesWith() API: > > > (warning: do not apply directly, patch is unfortunately word-wrapped; see > pull request) Pulled, thanks! P.S. Could you please put your test cases under validation/backend? It's really easy to make them part of regular "make check". -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html