Scalable vector GEPs are not constants and trying to create one for
these GEPs causes an assertion failure.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@paulwalker-arm @nikic can one of you please commit this for me? The email is quic_rahulana@quicinc.com and the name is Rahul Anand Radhakrishnan. Thanks!
Comment Actions
@rahulana-quic : This patch as it stand is causing unit test failures. There may be others but I see at least:
Failed Tests (3): LLVM :: Transforms/FunctionSpecialization/function-specialization-constant-expression.ll LLVM :: Transforms/SCCP/2009-09-24-byval-ptr.ll LLVM :: Transforms/SCCP/apint-bigint2.ll
My guess it's likely down to extra optimisations gained by using the generic folder. Please update the review with full test coverage and assuming nobody sees an issue with the new output I'll try to land it tomorrow.
I think this would be cleaner. It should gracefully handle scalable vectors and also make the folding DL-aware.