[PATCH] D75931: [PowerPC][Future] Add initial support for PC Relative addressing to get jump table base address

Anil Mahmud via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 19:42:26 PDT 2020


anil9 added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:2554
   bool Global = GSDN && GSDN->getTargetFlags() == PPCII::MO_PCREL_FLAG;
-  if (ConstPool || Global) {
+  JumpTableSDNode *JT = dyn_cast<JumpTableSDNode>(N.getNode());
+  bool JumpTable = JT && JT->getTargetFlags() == PPCII::MO_PCREL_FLAG;
----------------
The naming of the SDNodes is not consistent

ConstPoolNode/ GSDN / JT


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75931





More information about the llvm-commits mailing list