avr-llvm / llvm

[MERGED UPSTREAM] AVR backend for the LLVM compiler library
220 stars 21 forks source link

Don't generate LPMW instructions when they aren't supported #207

Open dylanmckay opened 8 years ago

dylanmckay commented 8 years ago

In AVRISelDAGToDAG.cpp, we unconditionally lower 16-bit program memory loads into the LPMW instruction.

We should only lower to this instruction if the LPMX feature is enabled (Subtarget->hasLPMX()).