Morten Ofstad
2005-Jan-19 13:04 UTC
[LLVMdev] Transforms/LevelRaise.cpp fails on packed types
Hello, after I started using packed types things have gone quite well, but now I hit a small problem again. The LevelRaise.cpp does some optimizing on getting the first element of a struct/array -- and now also packed types, so the assumption that if something is not a struct it must be an array is false. The solution is simple: if it's not an array it's a sequential type. Here is the patch. m. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LevelRaise.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050119/80a294f4/attachment.ksh>
Chris Lattner
2005-Jan-19 16:17 UTC
[LLVMdev] Transforms/LevelRaise.cpp fails on packed types
On Wed, 19 Jan 2005, Morten Ofstad wrote:> after I started using packed types things have gone quite well, but now I hit > a small problem again. The LevelRaise.cpp does some optimizing on getting the > first element of a struct/array -- and now also packed types, so the > assumption that if something is not a struct it must be an array is false. > The solution is simple: if it's not an array it's a sequential type. Here is > the patch.Applied, thanks! -Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/