Fix EnforceKnownAlignment so that it doesn't ever reduce the alignment
authorDan Gohman <gohman@apple.com>
Mon, 16 Feb 2009 23:02:21 +0000 (23:02 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 16 Feb 2009 23:02:21 +0000 (23:02 +0000)
commitecd0fb51cb5cc70ec7533c5d8119eb4654ffa45b
tree7eff07730fb7ce8d9046df0762d98dfab28ccec0
parente2a8dfefe5740377dbc323a84337c45d37410ea8
Fix EnforceKnownAlignment so that it doesn't ever reduce the alignment
of an alloca or global variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64693 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/enforce-known-alignment.ll [new file with mode: 0644]