[llvm] [ExpandMemCmp] Improve memcmp optimisation for boolean results (PR #71221)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 03:24:42 PST 2023


================
@@ -656,6 +658,40 @@ Value *MemCmpExpansion::getMemCmpOneBlock() {
 
   const LoadPair Loads = getLoadPair(LoadSizeType, BSwapSizeType, MaxLoadType,
                                      /*Offset*/ 0);
+
----------------
david-arm wrote:

LINE 640: We should probably update the comment on this function to describe the special cases we're dealing with and also the fact it can now return nullptr.

https://github.com/llvm/llvm-project/pull/71221


More information about the llvm-commits mailing list