mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
TBAA: try to fix the dragonegg bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b15e9893d
commit
e5f32cf320
@ -326,7 +326,9 @@ TypeBasedAliasAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
/// it as struct-path aware TBAA format, otherwise, we treat it as scalar TBAA
|
||||
/// format.
|
||||
static bool isStructPathTBAA(const MDNode *MD) {
|
||||
return isa<MDNode>(MD->getOperand(0));
|
||||
// Anonymous TBAA root starts with a MDNode and dragonegg uses it as
|
||||
// a TBAA tag.
|
||||
return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3;
|
||||
}
|
||||
|
||||
/// Aliases - Test whether the type represented by A may alias the
|
||||
|
Loading…
x
Reference in New Issue
Block a user