[PATCH] D32872: [PowerPC] Leverage PGO data to version/expand small/large memcpy calls

Lei Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 10:37:25 PST 2017


lei added inline comments.


================
Comment at: lib/Target/PowerPC/PPCLowerMemIntrinsics.cpp:164
+  // Expand known sizes within the range [MemcpyLoopFloor, MemcpyLoopCeil].
+  if (CISize) {
+    if (CISize->getZExtValue() > MemcpyLoopCeil) {
----------------
The content of this if-stmt can be replaced with:
```
return CISize->getZExtValue() >= MemcpyLoopFloor &&
            CISize->getZExtValue() <= MemcpyLoopCeil;
```


https://reviews.llvm.org/D32872





More information about the llvm-commits mailing list