Empty functions (functions with no real code) are irrelevant for propeller optimizations and their addresses sometimes conflict with other functions which obfuscates the analysis.
This simple change skips the BB address map emission for such functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/X86/basic-block-sections-labels-empty-function.ll | ||
---|---|---|
12 | Curious, How does this pass? There is a ".section .llvm_bb_addr_map" for func() later. |
llvm/test/CodeGen/X86/basic-block-sections-labels-empty-function.ll | ||
---|---|---|
12 | Right. I learned it too. FileCheck documentation says 'The “CHECK-NOT:” directive is used to verify that a string doesn’t occur between two matches' So this CHECK-NOT is evaluated against the next CHECK. |
llvm/test/CodeGen/X86/basic-block-sections-labels-empty-function.ll | ||
---|---|---|
12 | Sorry. bad link above: https://llvm.org/docs/CommandGuide/FileCheck.html#the-check-not-directive |
Curious, How does this pass? There is a ".section .llvm_bb_addr_map" for func() later.