Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
2883–2884 ↗ | (On Diff #85552) | New guard ... |
2885 ↗ | (On Diff #85552) | Minor: Function *GuardIntrinsic = II->getCalledFunction(); |
2888–2891 ↗ | (On Diff #85552) | We might have a guard with non-standard calling convention. I guess you'll need to set the cc for new guards as well. |
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
2889–2894 ↗ | (On Diff #85691) | Maybe: auto CC = II->getCallingConv() Builder->CreateCall(A)->setCallingConv(CC) Builder->CreateCall(B)->setCallingConv(CC) |
test/Transforms/InstCombine/call-guard.ll | ||
32 ↗ | (On Diff #85691) | Please add a test with non-default calling convention |
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
2889–2894 ↗ | (On Diff #85691) | I would rather not do call creation and setting the convention in one line, because in case if we want to do to them something more than setting the CC in future, this code will need to be changed. |
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
2889–2894 ↗ | (On Diff #85691) | Not a big deal IMO, but I leave it up to you. |
test/Transforms/InstCombine/call-guard.ll | ||
42 ↗ | (On Diff #85710) | @test_guard_and_non_default_cc? There is nothing specific about cc99 in this test. |