dtcxzyw wrote: > I really do not like these optimizations getting snuck into the DAG builder / IRTranslator. They should do their best to preserve the original IR Alright, I will post an alternative patch as @tschuett suggested. https://github.com/llvm/llvm-project/pull/93842