[PATCH] D86145: [Attributor] Simplify comparison against constant null pointer

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 08:52:15 PDT 2020


jdoerfert created this revision.
jdoerfert added reviewers: sstefan1, uenoku, homerdin, baziotis, kuter, bbn, okura.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.
jdoerfert requested review of this revision.

Comparison against null is a common pattern that usually is followed by
error handling code and the likes. We now use AANonNull to simplify
these comparisons optimistically in order to make more code dead early
on.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86145

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/Attributor/align.ll
  llvm/test/Transforms/Attributor/nocapture-1.ll
  llvm/test/Transforms/Attributor/nonnull.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86145.286292.patch
Type: text/x-patch
Size: 19402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200818/23ee2e62/attachment.bin>


More information about the llvm-commits mailing list