This adds flag -lsr-preferred-addressing-mode to override the target's preferred addressing mode. It replaces flag -lsr-backedge-indexing, which is equivalent to preindexed addressing that is one of the options that -lsr-preferred-addressing-mode accepts.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thank for putting this together.
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
5572 | Could this use PreferredAddresingMode.getNumOccurrences() > 0 to allwo overriding to None, even if the target returns Pre/PostIndexed? |
Could this use PreferredAddresingMode.getNumOccurrences() > 0 to allwo overriding to None, even if the target returns Pre/PostIndexed?