[PATCH] D73154: [AliasAnalysis] Add missing FMRB_* enums.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 17:53:10 PST 2020


efriedma created this revision.
efriedma added reviewers: hfinkel, fhahn, jdoerfert.
Herald added a reviewer: bollu.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Previously, the enums didn't account for all the possible cases, which could cause misleading results (particularly for a "switch" on FunctionModRefBehavior).

Fixes regression in polly from recent patch to add writeonly to memset.

While I'm here, also fix a few dubious uses of the FMRB_* enum values to use an appropriate helper instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73154

Files:
  llvm/include/llvm/Analysis/AliasAnalysis.h
  llvm/lib/Analysis/AliasAnalysis.cpp
  llvm/lib/Analysis/BasicAliasAnalysis.cpp
  llvm/lib/Transforms/Utils/InlineFunction.cpp
  polly/lib/Analysis/ScopBuilder.cpp
  polly/lib/Analysis/ScopDetection.cpp
  polly/test/ScopInfo/memset_null.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73154.239471.patch
Type: text/x-patch
Size: 8936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/cd747ed2/attachment.bin>


More information about the llvm-commits mailing list