[PATCH] [SROA] Fold a PHI node if all its incoming values are the same

Jingyue Wu jingyue at google.com
Fri Aug 22 14:20:46 PDT 2014


Thanks for the review, Chandler. 

I see what you are saying. I agree the current dead-operand-trackign mechanism is a little cumbersome for the use of SimplifyInstruction. 

I reverted the use of SimplifyInstruction and left the architectural changes as TODO. PTAL.

http://reviews.llvm.org/D4659

Files:
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/phi-and-select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4659.12856.patch
Type: text/x-patch
Size: 6221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140822/76f9d735/attachment.bin>


More information about the llvm-commits mailing list