craig.topper added a comment. @danilaml for your original case, why isn't CodeGenPrepare helping by sinking the sext? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71657/new/ https://reviews.llvm.org/D71657