llvm-project
bc1f3eb5 - [DAGCombiner] Pre-commit test case for ReduceLoadOpStoreWidth. NFC

Commit
1 year ago
[DAGCombiner] Pre-commit test case for ReduceLoadOpStoreWidth. NFC Adding test cases related to narrowing of load-op-store sequences. ReduceLoadOpStoreWidth isn't careful enough, so it may end up creating load/store operations that access memory outside the region touched by the original load/store. Using ARM as a target for the test cases to show what happens for both little-endian and big-endian. This patch also adds a way to override the TLI.isNarrowingProfitable check in DAGCombiner::ReduceLoadOpStoreWidth by using the option -combiner-reduce-load-op-store-width-force-narrowing-profitable. Idea is that it should be simpler to for example add lit tests verifying that the code is correct for big-endian (which otherwise is difficult since there are no in-tree big-endian targets that is overriding TLI.isNarrowingProfitable). This is a pre-commit for https://github.com/llvm/llvm-project/pull/119203
Author
Committer
Parents
Loading