Skip to content

Commit

Permalink
[Hexagon] Remove unused variable (and silence a warning)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293331 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Krzysztof Parzyszek committed Jan 27, 2017
1 parent e169855 commit 670a325
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 670a325

Please sign in to comment.