https://github.com/RKSimon commented: Not sure this is still necessary as the middle-end now does much of this for us - but if you do want to keep it, it needs to be updated https://github.com/llvm/llvm-project/pull/139165