ScalarEvolution: Derive element size from the type of the loaded element
authorTobias Grosser <tobias@grosser.es>
Sun, 8 Jun 2014 19:21:20 +0000 (19:21 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 8 Jun 2014 19:21:20 +0000 (19:21 +0000)
commit40ac10085a496e529c259d200ec27bc000eb4e2e
tree116911d4361101b6933d41ba1ef85645559890e8
parent402cb2c981d0b2ac27ddf1d0ccf761bf94625811
ScalarEvolution: Derive element size from the type of the loaded element

Before, we where looking at the size of the pointer type that specifies the
location from which to load the element. This did not make any sense at all.

This change fixes a bug in the delinearization where we failed to delinerize
certain load instructions.

llvm-svn: 210435
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/Delinearization/multidim_only_ivs_2d.ll