BBVectorize: Cache fixed-order pairs instead of recomputing pointer info.
authorHal Finkel <hfinkel@anl.gov>
Tue, 30 Oct 2012 20:17:37 +0000 (20:17 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 30 Oct 2012 20:17:37 +0000 (20:17 +0000)
commit08f34ac9ddc2310488b25a0547afdc5943983513
treefcc367844e62c89393ccfaa9b71fc85f8d8e2ddf
parent9c962c02e4223f9b587bb342538e1afa487b2a0a
BBVectorize: Cache fixed-order pairs instead of recomputing pointer info.

Instead of recomputing relative pointer information just prior to fusing,
cache this information (which also needs to be computed during the
candidate-pair selection process). This cuts down on the total number of
SE queries made, and also is a necessary intermediate step on the road toward
including shuffle costs in the pair selection procedure.

No functionality change is intended.

llvm-svn: 167049
llvm/lib/Transforms/Vectorize/BBVectorize.cpp