Commit f64d1c81 authored by Craig Topper's avatar Craig Topper
Browse files

[RISCV] Add test cases for folding disjoint Or into a scalar load address. NFC

After 47a1704a we are able to
reassociate a disjoint Or used as a GEP index to get the constant
closer to a load to fold it. This is show by the first test.

We are not able to do this if the GEP created a shift left to scale
the index as the second test shows.

To make this work, we need to preserve the disjoint flag when pulling
the Or through the shift.
parent 47a1704a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment