Use address-taken to disambiguate global variable and indirect memops.
authorShuxin Yang <shuxin.llvm@gmail.com>
Wed, 23 Oct 2013 17:28:19 +0000 (17:28 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Wed, 23 Oct 2013 17:28:19 +0000 (17:28 +0000)
commite4fb375995def5029b94b5af708dd181be36ca01
tree0aeb1e181522138b9b4899031276aa82e4648e7e
parent2ea0f2cdaef1d5c8a01acb2a9d9437215a0e0e00
Use address-taken to disambiguate global variable and indirect memops.

 Major steps include:
 1). introduces a not-addr-taken bit-field in GlobalVariable
 2). GlobalOpt pass sets "not-address-taken" if it proves a global varirable
    dosen't have its address taken.
 3). AA use this info for disambiguation.

llvm-svn: 193251
18 files changed:
llvm/docs/LangRef.rst
llvm/include/llvm/IR/GlobalVariable.h
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLToken.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/Globals.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Analysis/BasicAA/noaddrtaken.ll [new file with mode: 0644]
llvm/test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll
llvm/test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll
llvm/test/Transforms/GlobalOpt/atomic.ll
llvm/test/Transforms/GlobalOpt/globalsra-unknown-index.ll
llvm/test/Transforms/GlobalOpt/integer-bool.ll
llvm/test/Transforms/GlobalOpt/unnamed-addr.ll