[PATCH] D24565: [InstCombine] PR30366 : Teach the udiv folding logic how to handle constant expressions.

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 10:03:20 PDT 2016


majnemer added a subscriber: majnemer.

================
Comment at: lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:1002
@@ +1001,3 @@
+  Value *N;
+  match(ShiftLeft, m_Shl(m_APInt(CI), m_Value(N)));
+  if (*CI != 1)
----------------
You should check if match fails.


https://reviews.llvm.org/D24565





More information about the llvm-commits mailing list