In the attached heavily reduced testcase, basicaa returns noaa for two pointers that overlap. This causes miscompilation of consumer-typeset. -Chris
Created attachment 559 [details] failing testcase This performs a bogus xform: $ llvm-as < t.ll | opt -load-vn -gcse | llvm-dis The pointers obviously alias at codegen level: $ llvm-as < t.ll | llc
Fixed. Testcase here: Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll Patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070108/042647.html -Chris