Home
last modified time | relevance | path

Searched refs:FirstTrueElement (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp253 int FirstTrueElement = Undefined, SecondTrueElement = Undefined; in FoldCmpLoadFromIndexedGlobal() local
310 if (FirstTrueElement == Undefined) in FoldCmpLoadFromIndexedGlobal()
311 FirstTrueElement = TrueRangeEnd = i; // First true element. in FoldCmpLoadFromIndexedGlobal()
373 if (FirstTrueElement == Undefined) in FoldCmpLoadFromIndexedGlobal()
376 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in FoldCmpLoadFromIndexedGlobal()
412 assert(TrueRangeEnd != FirstTrueElement && "Should emit single compare"); in FoldCmpLoadFromIndexedGlobal()
415 if (FirstTrueElement) { in FoldCmpLoadFromIndexedGlobal()
416 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal()
421 TrueRangeEnd-FirstTrueElement+1); in FoldCmpLoadFromIndexedGlobal()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp288 int FirstTrueElement = Undefined, SecondTrueElement = Undefined; in FoldCmpLoadFromIndexedGlobal() local
345 if (FirstTrueElement == Undefined) in FoldCmpLoadFromIndexedGlobal()
346 FirstTrueElement = TrueRangeEnd = i; // First true element. in FoldCmpLoadFromIndexedGlobal()
410 if (FirstTrueElement == Undefined) in FoldCmpLoadFromIndexedGlobal()
413 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in FoldCmpLoadFromIndexedGlobal()
449 assert(TrueRangeEnd != FirstTrueElement && "Should emit single compare"); in FoldCmpLoadFromIndexedGlobal()
452 if (FirstTrueElement) { in FoldCmpLoadFromIndexedGlobal()
453 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal()
458 TrueRangeEnd-FirstTrueElement+1); in FoldCmpLoadFromIndexedGlobal()