This is the last remaining use of ConstantProp, migrate it to InstSimplify in the goal of removing ConstantProp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
There are 10 failures under llvm/test/CodeGen/Hexagon, and I don't have enough domain knowledge to fix them, was wondering if this even made sense at all.
Comment Actions
These failures seem to be caused by optimizing the code "too much", and simply removing the parts that the tests were looking for.
Could you add a debug flag in HexagonTargetMachine.cpp, and add the simplification pass conditionally, similarly to how line 322 does it? The pass would be added by default, but these failing tests could exclude it (see the -hexagon-initial-cfg-cleanup=0 in some of the failing tests, that's the exact same problem caused by some other change in optimization passes).