Simplify SROA conversion to integer in some ways, make it more general in others.
authorChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 00:57:54 +0000 (00:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 00:57:54 +0000 (00:57 +0000)
commitf4b1818728fb5cb0740cf5362faf72dd66ccf3ea
tree62eb1687202dddf8cfb986e99c8b4815f27f3906
parent410aa020a2c834a5029bb98ee44691c0ec6f2c53
Simplify SROA conversion to integer in some ways, make it more general in others.

We now tolerate small amounts of undefined behavior, better emulating what
would happen if the transaction actually occurred in memory.  This fixes
SingleSource/UnitTests/2007-04-10-BitfieldTest.c on PPC, at least until
Devang gets a chance to fix the CFE from doing undefined things with bitfields :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35875 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp