Turn the assert in PrepareConstants into a conditon so that we can handle mul instructions with negative immediates.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks like a straightforward fix/addition to me.
test/CodeGen/ARM/CGP/arm-cgp-icmps.ll | ||
---|---|---|
324 | nit: to test a mul with a negative number, we can probably have a more minimal example (we don't need a store, load, trunc, and). |
nit: to test a mul with a negative number, we can probably have a more minimal example (we don't need a store, load, trunc, and).