[llvm] [InstCombine] Decompose an icmp into multiple ranges (PR #69855)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 21 22:31:54 PDT 2023


================
@@ -1334,6 +1334,101 @@ Value *InstCombinerImpl::foldAndOrOfICmpsUsingRanges(ICmpInst *ICmp1,
   return Builder.CreateICmp(NewPred, NewV, ConstantInt::get(Ty, NewC));
 }
 
+/// Decompose icmp into intersection or union of ranges.
+static bool decomposeICmpIntoRangeSet(SmallVectorImpl<ConstantRange> &Set,
----------------
goldsteinn wrote:

nit: fmt

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


More information about the llvm-commits mailing list