The flag "-hexagon-emit-lut-text" (defaulted to false) is added to decide
on where to keep the switch generated lookup table.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/Hexagon/HexagonTargetObjectFile.cpp | ||
---|---|---|
142–145 | This could be if (const Function *Fn = getLutUsedFunction(GO)) return selectSectionForLookupTable(G0, TM, Fn); | |
419 | Maybe replace it with "if (!I) continue" to reduce indentation. | |
421 | 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 | I will work on indentation and push a new one | |
421 | 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. |
This could be