Not all ConstantExprs can be represented by a global variable, for example most pointer arithmetic other than addition of a constant, so we can't convert these values from switch statements to lookup tables.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I don't think this testcase is quite right... it passes even without your patch. Maybe you need to tweak the GEP a bit so it doesn't fail the isGEPWithNoNotionalOverIndexing check?
Comment Actions
Add a triple to the test, and move it to the ARM directory. Previously, the transformation was never done because a TTI check for legal types fails with the default implementation.