[PATCH] D82441: [PowerPC] add a target hook shouldHoistCheapInstructions for machine licm to hoist cheap instruction on PowerPC

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 02:07:54 PDT 2020


shchenz added a comment.

**NOTE**: I have not added a test case for this patch. The case is a little hard to construct. 
Currently, most cheap instructions on PowerPC are rematerializable. Rematerializable instructions will be hoisted before we check the register pressure in `CanCauseHighRegPressure`.

Since the logic here is quite straightforward, I leave this patch without a test case. I hope this is ok.

I will post another patch related to hoist rematerializable instructions based on this one. That patch will have a case to indicate the benefit of this hook.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82441





More information about the llvm-commits mailing list