URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [inline-4.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-Os -c -fdump-ipa-inline -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */ void do_something (int shall_i_work) { if (shall_i_work) { work_hard (); work_hard (); work_hard (); work_hard (); work_hard (); work_hard (); work_hard (); work_hard (); } } int foo (int invariant) { do_something (0); do_something (1); } /* We should inline do_something(0), but not do_something (1). */ /* { dg-final { scan-ipa-dump "Inlined 1 calls, eliminated 0 functions" "inline" } } */ /* Call to work_hard should be detected as optimized out. */ /* { dg-final { scan-ipa-dump-times "predicate: .false." 8 "inline" } } */ /* { dg-final { cleanup-ipa-dump "inline" } } */
Go to most recent revision | Compare with Previous | Blame | View Log