[PATCH] D51751: Merge clang's isRepeatedBytePattern with LLVM's isBytewiseValue
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 7 12:11:27 PDT 2018
efriedma added inline comments.
================
Comment at: lib/Analysis/ValueTracking.cpp:3121
+
+ if (isa<ConstantArray>(C) || isa<ConstantStruct>(C)) {
+ Value *Val = UndefInt8;
----------------
Do you really need separate loops for ConstantVector and ConstantArray?
================
Comment at: lib/Transforms/Scalar/LoopIdiomRecognize.cpp:654
+ if (isa<UndefValue>(FirstPatternValue))
+ FirstPatternValue = SecondPatternValue;
if (FirstPatternValue != SecondPatternValue)
----------------
No test coverage for this change?
================
Comment at: lib/Transforms/Scalar/MemCpyOptimizer.cpp:391
Value *StartPtr,
- Value *ByteVal) {
+ Value *&ByteVal) {
const DataLayout &DL = StartInst->getModule()->getDataLayout();
----------------
What's the point of changing this signature? It doesn't seem to have any effect.
Repository:
rL LLVM
https://reviews.llvm.org/D51751
More information about the llvm-commits
mailing list