[PATCH] Fix Bug in SROA transformation [PR18615]

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Feb 17 06:02:55 PST 2014


On 17 February 2014 01:10, Karthik Bhat <kv.bhat at samsung.com> wrote:
>   Hi Duncan,
>   Thanks for having a look at the patch. Added a test case to capture PR18615 in clang/test/CodeGen/ Please let me know if this the right place for this test case as i'm a bit new to llvm.

We normally use tests that run only one pass, or the smallest possible
number of passes.

>   Please let me know your inputs about the patch.

> +// RUN: %clang_cc1 -emit-llvm -O1 %s  -o /dev/null

So instead of running clang -O1, you should be able to extract the IR
at -O0 and it should crash when you run "opt -O1" in it. You should
then be able to replace -O1 with just -sroa.

Cheers,
Rafael



More information about the llvm-commits mailing list