[llvm] Implement foldICmpRemConstant in InstCombineCompares (PR #77410)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 08:10:21 PST 2024


================
@@ -3708,7 +3748,12 @@ Instruction *InstCombinerImpl::foldICmpBinOpWithConstant(ICmpInst &Cmp,
   case Instruction::SRem:
     if (Instruction *I = foldICmpSRemConstant(Cmp, BO, C))
       return I;
+   [[fallthrough]]; 
+  case Instruction::URem:
----------------
Baxi-codes wrote:

How do I do this? Do I undo the changes, add tests, and commit, then do the changes again?

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


More information about the llvm-commits mailing list