Gordon Henriksen 0e13821c96 GC poses hazards to the inliner. Consider:
define void @f() {
            ...
            call i32 @g()
            ...
    }

    define void @g() {
            ...
    }

The hazards are:

  - @f and @g have GC, but they differ GC. Inlining is invalid. This
    may never occur.
  - @f has no GC, but @g does. g's GC must be propagated to @f.

The other scenarios are safe:

  - @f and @g have the same GC.
  - @f and @g have no GC.
  - @g has no GC.

This patch adds inliner checks for the former two scenarios.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45351 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-25 03:10:07 +00:00
..
2007-04-16 17:36:08 +00:00
2007-04-28 06:03:12 +00:00
2007-02-25 21:43:21 +00:00
2007-04-26 21:20:04 +00:00
2007-04-17 23:43:31 +00:00
2007-11-28 18:22:12 +00:00
2007-04-16 17:36:08 +00:00
2007-09-24 15:50:11 +00:00
2007-04-16 03:06:39 +00:00
2007-04-30 05:11:58 +00:00