[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 27 20:02:22 PDT 2018


craig.topper added a comment.

@jonpa, it looks like changing the urem to this will trigger the original bug and avoid the optimization Simon is adding here.

  %B8 = call { i8, i1 } @llvm.umul.with.overflow.i8(i8 %L5, i8 %L)
  %B9 = extractvalue {i8, i1} %B8, 0


Repository:
  rL LLVM

https://reviews.llvm.org/D50636





More information about the llvm-commits mailing list