[PATCH] [SROA] Fold a PHI node if all its incoming values are the same
jingyue at google.com
Fri Jul 25 21:28:35 PDT 2014
Chandler, thanks for your suggestions! I think moving the logic to SliceBuilder makes perfect sense.
After modifying SliceBuilder::visitPHINode, I found it almost the same as visitSelectInst. Therefore, I also refactored the code to merge visitPHINode and visitSelectInst to one function. Let me know if it looks good to you.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6239 bytes
Desc: not available
More information about the llvm-commits