[PATCH] D19341: Add micro-optimization for 'icmp slt (or A, B), A' to instsimplify.

Nick Lewycky via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 15:04:51 PDT 2016


nlewycky updated this revision to Diff 54431.
nlewycky added a comment.

Move the m_c_Op pattern matches out of ValueTracking.cpp and into PatternMatch.h. Reuse m_c_Or to simplify the new logic in InstructionSimplify.

Swap out a 0 for nullptr when used to initialize a pointer.


http://reviews.llvm.org/D19341

Files:
  include/llvm/Analysis/ValueTracking.h
  include/llvm/IR/PatternMatch.h
  lib/Analysis/InstructionSimplify.cpp
  lib/Analysis/ValueTracking.cpp
  test/Transforms/InstSimplify/compare.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19341.54431.patch
Type: text/x-patch
Size: 12770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160420/bce48398/attachment.bin>


More information about the llvm-commits mailing list