fix: ac/llvm: LLVM 18: remove useless passes, partially removed upstream
Upstream removed llvm::createLoopSinkPass()
in commit b9975cec0ea0a2f10d65b7bd1197d9e1706cbd3d and there is no useful alternative except moving to the new pass manager.
On top of that, the usage of this optimisation pass and PromoteMemoryToRegisterPass
were just useless, according to the upstream developer of the commit named above. Therefore the easiest solution is, as him, Marek and Dave suggested, to just remove these two passes from the pipeline for now.
- Closes: #10192 (closed)
- Reference: https://github.com/llvm/llvm-project/pull/72811
- Reference: https://github.com/llvm/llvm-project/commit/b9975cec0ea0a2f10d65b7bd1197d9e1706cbd3d
- Suggested-by: Dave Airlie airlied@redhat.com
- Suggested-by: Aiden Grossman agrossman154@yahoo.com
- Suggested-by: Marek Olšák maraeo@gmail.com
- Signed-off-by: Kai Wasserbäch kai@dev.carbon-project.org
- Reviewed-by: Marek Olšák marek.olsak@amd.com
Edited by Kai Wasserbäch