We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34bd2f commit 6c5705dCopy full SHA for 6c5705d
compiler/lib/driver.ml
@@ -45,17 +45,19 @@ let deadcode' p =
45
Deadcode.f pure_fun p
46
47
let deadcode p =
48
- let p, _ = deadcode' p in
49
let p = Deadcode.merge_blocks p in
50
let p = Code.compact p in
51
p
52
53
let inline profile p =
54
- if Config.Flag.inline () && Config.Flag.deadcode ()
55
- then (
+ if Config.Flag.deadcode ()
+ then
56
let p, live_vars = deadcode' p in
57
- if debug () then Format.eprintf "Inlining...@.";
58
- Inline.f ~profile p live_vars)
+ if Config.Flag.inline ()
+ then (
+ if debug () then Format.eprintf "Inlining...@.";
59
+ Inline.f ~profile p live_vars)
60
+ else p
61
else p
62
63
let specialize_1 (p, info) =
0 commit comments