[PATCH] D33787: [IR] BasicBlock updatePHIs function for updating predecessors
Marcin SÅ‚owik via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 10:10:50 PDT 2017
Marandil created this revision.
[IR] Add a function to update all PHI nodes within the block to change incoming values from IncomingOld to IncomingNew if IncomingOld is no longer a valid predecessor, or add new incoming edges in PHI nodes with IncomingNew otherwise.
The rationale behind this function is the amount of PHI node updates in my IR-based implementation of Jump Maps.
I've added a few unit tests for the function.
https://reviews.llvm.org/D33787
Files:
include/llvm/IR/BasicBlock.h
lib/IR/BasicBlock.cpp
unittests/IR/BasicBlockTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33787.101041.patch
Type: text/x-patch
Size: 6022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/90cb4546/attachment.bin>
More information about the llvm-commits
mailing list