misched: better alias analysis.
authorAndrew Trick <atrick@apple.com>
Wed, 28 Nov 2012 03:42:49 +0000 (03:42 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 28 Nov 2012 03:42:49 +0000 (03:42 +0000)
commit0be19363d1389680b570949cadbfcd6d220e3d87
tree017ba3c56af8211217be21ef2db5d23a23848958
parentcf7e6971e819732ff330c877184caabbe5097afd
misched: better alias analysis.

This fixes a hole in the "cheap" alias analysis logic implemented within
the DAG builder itself, regardless of whether proper alias analysis is
enabled. It now handles this pattern produced by LSR+CodeGenPrepare.

%sunkaddr1 = ptrtoint * %obj to i64
%sunkaddr2 = add i64 %sunkaddr1, %lsr.iv
%sunkaddr3 = inttoptr i64 %sunkaddr2 to i32*
store i32 %v, i32* %sunkaddr3

llvm-svn: 168768
llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
llvm/test/CodeGen/X86/misched-matrix.ll [new file with mode: 0644]