summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-07-15 17:19:24 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-07-15 17:19:24 +0000
commita940f360cbaa1fb0da984c5cd311efe85a7d88ae (patch)
treebaffc2b5634d136cf428f8e8d1b6d17499fe246f /llvm/tools/opt/opt.cpp
parent3d89db445d1f013a3abb250a1239199a23aae905 (diff)
downloadbcm5719-llvm-a940f360cbaa1fb0da984c5cd311efe85a7d88ae.tar.gz
bcm5719-llvm-a940f360cbaa1fb0da984c5cd311efe85a7d88ae.zip
[AliasAnalysis] Give back AA results for fence instructions
Calling getModRefInfo with a fence resulted in crashes because fences don't have a memory location. Add a new predicate to Instruction called isFenceLike which indicates that the instruction mutates memory but not any single memory location in particular. In practice, it is a proxy for the set of instructions which "mayWriteToMemory" but cannot be used with MemoryLocation::get. This fixes PR28570. llvm-svn: 275581
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud