[llvm] r267761 - [LIR] Reuse variable. NFCI.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 12:04:47 PDT 2016


Author: ab
Date: Wed Apr 27 14:04:46 2016
New Revision: 267761

URL: http://llvm.org/viewvc/llvm-project?rev=267761&view=rev
Log:
[LIR] Reuse variable. NFCI.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp?rev=267761&r1=267760&r2=267761&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp Wed Apr 27 14:04:46 2016
@@ -606,7 +606,7 @@ bool LoopIdiomRecognize::processLoopMemS
     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();




More information about the llvm-commits mailing list