[PATCH] D116399: [AVR] Fix a bug of register allocation

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 30 04:05:11 PST 2021


benshi001 added inline comments.


================
Comment at: llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp:171
   // Progmem indexed loads only work in POSTINC mode.
-  if (LD->getExtensionType() != ISD::NON_EXTLOAD || AM != ISD::POST_INC) {
+  if (LD->getExtensionType() != ISD::NON_EXTLOAD ||
+      LD->getAddressingMode() != ISD::POST_INC)
----------------
the previous variable `AM` is not longer used, so merge it to the `if` condition.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116399/new/

https://reviews.llvm.org/D116399



More information about the llvm-commits mailing list