[Hexagon] Remove unused variable (and silence a warning)

llvm-svn: 293331
This commit is contained in:
Krzysztof Parzyszek 2017-01-27 20:40:14 +00:00
parent 453ab3522b
commit 35ce5dac7f
1 changed files with 2 additions and 4 deletions

View File

@ -1080,10 +1080,8 @@ int HexagonLoopIdiomRecognize::getSCEVStride(const SCEVAddRecExpr *S) {
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();