From 837b4a5338daf286b95a84a0c21a8a02bd811402 Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Wed, 27 Apr 2016 19:04:46 +0000 Subject: [PATCH] [LIR] Reuse variable. NFCI. llvm-svn: 267761 --- lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 68bd672c609..c93f9438eea 100644 --- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -606,7 +606,7 @@ bool LoopIdiomRecognize::processLoopMemSet(MemSetInst *MSI, return false; // If we're not allowed to hack on memset, we fail. - if (!TLI->has(LibFunc::memset)) + if (!HasMemset) return false; Value *Pointer = MSI->getDest();