[PATCH] D51152: [NFC] Unify guards detection

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 22:35:27 PDT 2018


mkazantsev created this revision.
mkazantsev added a reviewer: reames.

We have multiple places in code where we try to identify whether or not
some instruction is a guard. This patch factors out this logic into a separate
utility function which works uniformly in all places.


https://reviews.llvm.org/D51152

Files:
  include/llvm/Transforms/Utils/GuardUtils.h
  lib/Analysis/AliasSetTracker.cpp
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/Scalar/EarlyCSE.cpp
  lib/Transforms/Scalar/GuardWidening.cpp
  lib/Transforms/Scalar/JumpThreading.cpp
  lib/Transforms/Scalar/LICM.cpp
  lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
  lib/Transforms/Utils/GuardUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51152.162135.patch
Type: text/x-patch
Size: 7324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180823/5741d858/attachment.bin>


More information about the llvm-commits mailing list