r266829 - [Parse] Reuse OptionUnroll rather than matching it again. NFC
Adam Nemet via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 19 15:29:24 PDT 2016
Author: anemet
Date: Tue Apr 19 17:29:24 2016
New Revision: 266829
URL: http://llvm.org/viewvc/llvm-project?rev=266829&view=rev
Log:
[Parse] Reuse OptionUnroll rather than matching it again. NFC
Modified:
cfe/trunk/lib/Parse/ParsePragma.cpp
Modified: cfe/trunk/lib/Parse/ParsePragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParsePragma.cpp?rev=266829&r1=266828&r2=266829&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParsePragma.cpp (original)
+++ cfe/trunk/lib/Parse/ParsePragma.cpp Tue Apr 19 17:29:24 2016
@@ -824,8 +824,7 @@ bool Parser::HandlePragmaLoopHint(LoopHi
StateOption = llvm::StringSwitch<bool>(OptionInfo->getName())
.Case("vectorize", true)
.Case("interleave", true)
- .Case("unroll", true)
- .Default(false);
+ .Default(false) || OptionUnroll;
}
// Verify loop hint has an argument.
More information about the cfe-commits
mailing list