OSDN Git Service

ValueTracker can't assume that an alloca with no specified alignment
authorChris Lattner <sabre@nondot.org>
Thu, 8 Jan 2009 19:28:38 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Jan 2009 19:28:38 +0000 (19:28 +0000)
commit0f2831c820151aa6f2cd6a8bd7b6b633b1035524
tree67f6ce72cac44f90ee4920fb6304a69d6e308f3f
parent1e407c338f6944242facb1e0c32903162cc366f0
ValueTracker can't assume that an alloca with no specified alignment
will get its preferred alignment.  It has to be careful and cautiously assume
it will just get the ABI alignment.  This prevents instcombine from rounding
up the alignment of a load/store without adjusting the alignment of the alloca.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61934 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll [new file with mode: 0644]