[PATCH] D35027: [PowerPC] Reduce register pressure by not materializing a constant just for use as an index register for X-Form loads/stores

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 10:13:52 PDT 2017


echristo added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:2244
+  // we get rid of the add.
+  short imm = 0;
+  if (N.getOpcode() == ISD::ADD &&
----------------
lei wrote:
> echristo wrote:
> > uint16_t Imm
> The static function isIntS16Immediate() takes a short&
Could fix that too :)


https://reviews.llvm.org/D35027





More information about the llvm-commits mailing list