[PATCH] [SROA] Simplify PHI nodes before promoting the alloca
Jingyue Wu
jingyue at google.com
Thu Jul 24 11:07:08 PDT 2014
Hi chandlerc, nlewycky, eliben, meheff,
Fixes PR20425.
Some PHI users of the alloca are trivially equivalent to the alloca, e.g.,
phi(alloca, alloca). Replace these PHI nodes with the alloca to make promotion
more effective.
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.11851.patch
Type: text/x-patch
Size: 4901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140724/b3e4d8b3/attachment.bin>
More information about the llvm-commits
mailing list