[PATCH] D97160: [DAGCombiner] Optimize SMULO/UMULO if we can prove that overflow is impossible.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 21 13:17:11 PST 2021


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/X86/xmulo.ll:11
+; CHECK-NEXT:    xorl %edx, %edx
 ; CHECK-NEXT:    retq
   %1 = call {i64, i1} @llvm.umul.with.overflow.i64(i64 9, i64 8)
----------------
Are we missing constant folding?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97160/new/

https://reviews.llvm.org/D97160



More information about the llvm-commits mailing list