[PATCH] D48754: [InstCombine] canonicalize abs pattern

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 07:30:48 PDT 2018


spatel added inline comments.


================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:4520
     return true;
 
   // Y = sub (0, X)
----------------
There is some white space difference in this file. It should not be included in this patch now.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:836
+
+  // Create the canoical RHS: RHS = sub (0, LHS).
+  if (!match(RHS, m_Neg(m_Specific(LHS)))) {
----------------
typo: canoical


https://reviews.llvm.org/D48754





More information about the llvm-commits mailing list