This is another step toward improving fca support. This unpack load of array in a series of load to array's elements.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | ||
---|---|---|
526 ↗ | (On Diff #46581) | Why can't we simply call LI.getName() wherever it is required rather than maintaining the variable "Name"? |
531 ↗ | (On Diff #46581) | Same here. Do we really need to maintain NumElements? Can we simply call ST->getNumElements() instead? |
582 ↗ | (On Diff #46581) | I think these could be written better as: SmallString<16> LoadName = LI->getName() + ".unpack"; |
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | ||
---|---|---|
526 ↗ | (On Diff #46581) | Is that a |
526 ↗ | (On Diff #46581) | Is that a problem ? I generally avoid calling the same thing again and again. In this case, it probably doesn't matter much. |
582 ↗ | (On Diff #46581) | error: no viable conversion from 'llvm::Twine' to 'SmallString<16>' |