[PATCH] D42209: [ModRefInfo] Return NoModRef for Must and NoModRef.
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 01:00:37 PST 2018
sanjoy accepted this revision.
sanjoy added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Analysis/BasicAliasAnalysis.cpp:858
+ return ModRefInfo::NoModRef;
+ else
+ return IsMustAlias ? setMust(Result) : clearMust(Result);
----------------
[minor] Instead of
```
if (X)
return A;
else
return B;
```
you can do
```
if (X)
return A;
return B;
```
Repository:
rL LLVM
https://reviews.llvm.org/D42209
More information about the llvm-commits
mailing list