[llvm] r293331 - [Hexagon] Remove unused variable (and silence a warning)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 12:40:14 PST 2017
Author: kparzysz
Date: Fri Jan 27 14:40:14 2017
New Revision: 293331
URL: http://llvm.org/viewvc/llvm-project?rev=293331&view=rev
Log:
[Hexagon] Remove unused variable (and silence a warning)
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp?rev=293331&r1=293330&r2=293331&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp Fri Jan 27 14:40:14 2017
@@ -1080,10 +1080,8 @@ int HexagonLoopIdiomRecognize::getSCEVSt
bool HexagonLoopIdiomRecognize::isLegalStore(Loop *CurLoop, StoreInst *SI) {
- bool IsVolatile = false;
- if (SI->isVolatile() && HexagonVolatileMemcpy)
- IsVolatile = true;
- else if (!SI->isSimple())
+ // Allow volatile stores if HexagonVolatileMemcpy is enabled.
+ if (!(SI->isVolatile() && HexagonVolatileMemcpy) && !SI->isSimple())
return false;
Value *StoredVal = SI->getValueOperand();
More information about the llvm-commits
mailing list