The flag "-hexagon-emit-lut-text" (defaulted to false) is added to decide
on where to keep the switch generated lookup table.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/Hexagon/HexagonTargetObjectFile.cpp | ||
---|---|---|
142–145 ↗ | (On Diff #104675) | This could be if (const Function *Fn = getLutUsedFunction(GO)) return selectSectionForLookupTable(G0, TM, Fn); |
419 ↗ | (On Diff #104675) | Maybe replace it with "if (!I) continue" to reduce indentation. |
421 ↗ | (On Diff #104675) | Are there legitimate cases where instruction does not have a parent? If not, you could remove this test (maybe add an assertion instead). |
lib/Target/Hexagon/HexagonTargetObjectFile.cpp | ||
---|---|---|
419 ↗ | (On Diff #104675) | I will work on indentation and push a new one |
421 ↗ | (On Diff #104675) | I am not sure about this which is why I am trying to be safe by returning a nullptr. There might be scenarios of dead basic blocks or functions . I probably need to run a big code base to see what might happen. |