[PATCH] D33243: [Atomics][LoopIdiom] Recognize unordered atomic memcpy
Daniel Neilson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 12:23:34 PDT 2017
dneilson added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopIdiomRecognize.cpp:1012
+ unsigned StoreSizeBits = StoreSize * 8;
+ if (StoreSizeBits > TTI->getRegisterBitWidth(false))
+ return false;
----------------
This is the replacement due to the inability to use RTLIB in ScalarOpt due to a circular dependency. It's not ideal as it's theoretically possible that larger width versions of the intrinsic's lib call will exist (ex: ones that are implemented to use vector regs for the load/stores), but we won't be able to exploit any that are wider than scalar register width.
https://reviews.llvm.org/D33243
More information about the llvm-commits
mailing list