[PATCH] D27232: [lanai] Custom lowering of SHL_PARTS

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 16:47:03 PST 2016


majnemer added inline comments.


================
Comment at: lib/Target/Lanai/LanaiISelLowering.cpp:1248-1253
+  // Performs the following for a << b:
+  //   LoBitsForHi = (b == 0) ? 0 : (a_low >> (32-b))
+  //   HiBitsForHi = a_high << b
+  //   r_high = (b >= 32) ? (a_low << (b-32)) : (LoBitsForHi | HiBitsForHi)
+  //   r_low = (b >= 32) ? 0 : (a_low << b)
+  //   return (unsigned long long)r_high << 32 | r_low;
----------------
It'd be nice if there was more of a correspondence between this pseudo code and the variable names below.


https://reviews.llvm.org/D27232





More information about the llvm-commits mailing list