Both scales and offsets in the BasicAliasAnalysis::constantOffsetHeuristic should initially be zero.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It would be much better to have a test case that directly tests the functionality in question, and makes sure the answer is right (instead of just ensuring that it does not crash). Could you extract from your test case a test that you run with -aa-eval? (It seems like this should be relatively easy; if not, please say so.)
Comment Actions
Un-revert D6682 and make test case re-produce the assertion failure
using just -basicaa -aa-eval
Comment Actions
Sorry for the delay - I've modified test/Analysis/BasicAA/bug.23540.ll so it hits the assertion error just using -aa-eval. I've also added in the rest of D6682 as it was (correctly) reverted in r237984. Thanks -
Nick
Comment Actions
@hfinkel thanks - but I still don't have commit permissions, so could you commit this for me?