[llvm] [X86] Remove redundant TEST after shifts when count is non-zero (PR #169069)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 21 10:04:42 PST 2025


================
@@ -786,8 +786,32 @@ bool CodeGenPrepare::eliminateAssumptions(Function &F) {
       if (auto *Assume = dyn_cast<AssumeInst>(I)) {
         MadeChange = true;
         Value *Operand = Assume->getOperand(0);
+        if (ICmpInst *Cmp = dyn_cast<ICmpInst>(Operand)) {
----------------
arsenm wrote:

CodeGenPrepare doesn't feel like the right place for this 

https://github.com/llvm/llvm-project/pull/169069


More information about the llvm-commits mailing list