llvm-project
2036bc52 - [IR] Update IRBuilder::createVectorSplice to allow variable offsets (#177178)

Commit
90 days ago
[IR] Update IRBuilder::createVectorSplice to allow variable offsets (#177178) Following on from #174693, this updates IRBuilder to allow variable offsets, and splits the createVectorSplice function into two functions for left and right splices. We could preserve the existing createVectorSplice API but given there's only one LLVM-internal user of it in the loop vectorizer, and the notion of a negative offset doesn't exist in the intrinsics anymore, I've removed it. Happy to add it back if reviewers prefer though. I've also added unit tests since createVectorSpliceLeft has no coverage otherwise.
Author
Parents
Loading