[PATCH] D45448: [CVP] simplify phi with constant incoming values that match common variable edge values

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 10 11:22:59 PDT 2018


spatel updated this revision to Diff 141883.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:
Fixed the call to dominates() to use the phi's block, not the phi itself.


https://reviews.llvm.org/D45448

Files:
  lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  test/Transforms/CorrelatedValuePropagation/phi-common-val.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45448.141883.patch
Type: text/x-patch
Size: 6283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180410/80a0e96f/attachment.bin>


More information about the llvm-commits mailing list