[PATCH] D18905: [ValueTracking] Improve isImpliedCondition for conditions with matching operands.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 08:17:01 PDT 2016


mcrosier retitled this revision from "[ValueTracking] Improve isImpliedCondition for conditions with matching but swapped operands." to "[ValueTracking] Improve isImpliedCondition for conditions with matching operands.".
mcrosier updated this revision to Diff 53559.
mcrosier added a comment.

-Make this patch much more general by not insisting the operands be swapped.
-Address the FIXME by handling the remaining comparisons (e.g., A == B implies A >B, A <B, and A != B are false, etc.).

Passes all correctness test for the test-suite, SPEC200X, EEMBC and a clang bootstrap.

I believe this is in pretty good shape.

Chad


http://reviews.llvm.org/D18905

Files:
  include/llvm/Analysis/ValueTracking.h
  lib/Analysis/InstructionSimplify.cpp
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/Scalar/JumpThreading.cpp
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/implied-cond-matching.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18905.53559.patch
Type: text/x-patch
Size: 15234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160413/3acb48b1/attachment.bin>


More information about the llvm-commits mailing list