[PATCH] D50636: [DAGCombiner] Add X / X -> 1 & X % X -> 0 folds.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 13 20:46:11 PDT 2018


craig.topper added inline comments.


================
Comment at: test/CodeGen/X86/combine-srem.ll:455
   %L6 = load i32, i32* undef
-  %B11 = sdiv i32 %L6, %L6
-  %B13 = udiv i32 %B17, %B17
+  %B11 = sdiv i32 %B17, %L6
+  %B13 = udiv i32 %B17, %L6
----------------
Should these test IR changes be committed separately?


Repository:
  rL LLVM

https://reviews.llvm.org/D50636





More information about the llvm-commits mailing list