Address taken function may not always be cold.
optnone functions should not be optimized.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/Transforms/HotColdSplit/split-cold-1.ll | ||
---|---|---|
29 | I'm guessing if this is marked "noinline" then this test wouldn't fail with the patch not applied? (because it'd be caught by the noinline case a few lines later - producing the same behavior) With the "noinline" removed, does this test fail without the patch applied? |
test/Transforms/HotColdSplit/split-cold-1.ll | ||
---|---|---|
29 | This patch shouldn't be necessary, optnone requires noinline: $ cat /tmp/a.ll define void @test1() optnone { ret void } $ bin/opt.exe -verify -disable-output /tmp/a.ll Attribute 'optnone' requires 'noinline'! void ()* @test1 C:\src\llvm-project\build\rel\bin\opt.exe: C:/src/tmp/a.ll: error: input module is broken! |
test/Transforms/HotColdSplit/split-cold-1.ll | ||
---|---|---|
29 | Great! Given how old the patch is, I'll just commandeer and abandon it. |
I'm guessing if this is marked "noinline" then this test wouldn't fail with the patch not applied? (because it'd be caught by the noinline case a few lines later - producing the same behavior)
With the "noinline" removed, does this test fail without the patch applied?