Re: [llvm-commits] [llvm] r47006 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2008-02-12 Thread Dan Gohman
Hi Eli, Could you add a regression test from the testcase in the PR, to verify that the load is optimized out? Thanks, Dan On Feb 12, 2008, at 4:08 AM, Eli Friedman wrote: > Author: efriedma > Date: Tue Feb 12 06:08:14 2008 > New Revision: 47006 > > URL: http://llvm.org/viewvc/llvm-project?rev

[llvm-commits] [llvm] r47006 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2008-02-12 Thread Eli Friedman
Author: efriedma Date: Tue Feb 12 06:08:14 2008 New Revision: 47006 URL: http://llvm.org/viewvc/llvm-project?rev=47006&view=rev Log: Fix for bug 1996: optimize out loads of undef. This code basically just checks for a malloc/alloca immediately followed by a load. Modified: llvm/trunk/lib/Tr