[PATCH] [ValueTracking] refactor: extract method noCommonSetBits

Jingyue Wu jingyue at google.com
Tue May 12 22:50:08 PDT 2015


Hi broune, majnemer, meheff,

Extract method noCommonSetBits so that we don't have to duplicate this logic in
InstCombine and SeparateConstOffsetFromGEP.

This patch also makes SeparateConstOffsetFromGEP more precise by passing
DominatorTree to computeKnownBits.

http://reviews.llvm.org/D9734

Files:
  include/llvm/Analysis/ValueTracking.h
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/InstCombine/InstCombineAddSub.cpp
  lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9734.25661.patch
Type: text/x-patch
Size: 16500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150513/66be97eb/attachment.bin>


More information about the llvm-commits mailing list