OSDN Git Service

Allow readnone functions to read (and write!) global
authorDuncan Sands <baldrick@free.fr>
Mon, 29 Dec 2008 11:34:09 +0000 (11:34 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 29 Dec 2008 11:34:09 +0000 (11:34 +0000)
commit516ec62bfef9dcf7390811083d07ee9fe16fe091
treef9e1b480e44fa0e2f6bfd824c4df19504a7eaf15
parent2b7fc1ef53f71f06135aa7a996840073d3bc0595
Allow readnone functions to read (and write!) global
constants, since doing so is irrelevant for aliasing
purposes.  While this doesn't increase the total number
of functions marked readonly or readnone in MultiSource/
Applications (3089), it does result in 12 functions being
marked readnone rather than readonly.
Before:
  readnone: 820
  readonly: 2269
After:
  readnone: 832
  readonly: 2257

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/AddReadAttrs.cpp
test/Transforms/AddReadAttrs/2008-12-29-Constant.ll [new file with mode: 0644]