[PATCH] D142019: ARM: skip debug instructions when matching jump-table patterns.

Jeremy Morse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 04:33:46 PST 2023


jmorse added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMConstantIslandPass.cpp:2282-2284
+      do {
+        Shift = Shift->getPrevNode();
+      } while (Shift && Shift->isDebugInstr());
----------------
I believe you should be able to use `skipDebugInstructionsBackward` to achieve this more concisely.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142019



More information about the llvm-commits mailing list