[PATCH] D32252: [GVN] Add phi-translate for scalarpre as a temporary solution

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 10:01:29 PDT 2017


wmi updated this revision to Diff 99586.
wmi added a comment.

Initialize commutative in Expression's constructor.
Fix a bug related with commutative: need to swap cmp predicate at the same time when we swap the operands.


Repository:
  rL LLVM

https://reviews.llvm.org/D32252

Files:
  include/llvm/Transforms/Scalar/GVN.h
  lib/Transforms/Scalar/GVN.cpp
  test/Transforms/GVN/PRE/phi-translate-2.ll
  test/Transforms/GVN/PRE/pre-gep-load.ll
  test/Transforms/GVN/PRE/pre-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32252.99586.patch
Type: text/x-patch
Size: 17406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170519/861d0064/attachment.bin>


More information about the llvm-commits mailing list