I started using the AliasSetTracker, but I have a problem.<br><br>I am using -basicaa -anders-aa and optimizations are enabled for llvm-gcc and llvm-ld.<br>I use an instruction visitor to populate the alias set tracker, but two pointers end up in different alias sets.<br>
While investigating this I notice at one point that if I call:<br><br>bool New = false;<br>AliasSet &X = AST->getAliasSetForPointer(Pointer, Size, &New);<br><br>After this call, New is true<br>but AST->containsPointer(Pointer, Size) is false! Shouldn't it be true at this point?<br>
<br>If I call again getAliasSetForPointer after resetting New, it remains false, as I expect it after the first call.<br><br>But AST->getAliasSetForPointerIfExists(Pointer, Size) returns null. Again, shouldn't it return the same alias set as the first call?<br>
<br>Am I misunderstanding something? This seems to work without optimizations or without -anders-aa.<br><br>Using revision 79271<br><br>Best regards,<br>Marcus<br>