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)
commit8f82a0867343058f4e01d640abbfae76af6886b4
treee58d9d6153e64cbd0efdf2e473989a4e1d372a81
parentb422104f35b93b262cad8c2b8ba8c2f55ef6c1e4
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168768 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
test/CodeGen/X86/misched-matrix.ll [new file with mode: 0644]