Skip to content

Commit 4d7b72a

Browse files
authored
Merge pull request MicrosoftDocs#3617 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents ec5f24c + ea42c43 commit 4d7b72a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/build/optimization-best-practices.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ A pointer that is modified with **`__restrict`** is referred to as a *__restrict
9494
9595
**`__restrict`** can be a powerful tool for the Microsoft C++ optimizer, but use it with great care. If used improperly, the optimizer might perform an optimization that would break your application.
9696
97-
The **`__restrict`** keyword replaces the **/Oa** switch from previous versions.
98-
9997
With **`__assume`**, a developer can tell the compiler to make assumptions about the value of some variable.
10098
10199
For example `__assume(a < 5);` tells the optimizer that at that line of code the variable `a` is less than 5. Again this is a promise to the compiler. If `a` is actually 6 at this point in the program then the behavior of the program after the compiler has optimized may not be what you would expect. **`__assume`** is most useful prior to switch statements and/or conditional expressions.

0 commit comments

Comments
 (0)