[PATCH] D63212: [ARM] Scan for existing loop intrinsics

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 09:24:47 PDT 2019


samparker marked an inline comment as done.
samparker added inline comments.


================
Comment at: lib/Target/ARM/ARMTargetTransformInfo.cpp:839
   HWLoopInfo.CounterInReg = true;
+  HWLoopInfo.IsNestingLegal = false;
   HWLoopInfo.CountType = Type::getInt32Ty(C);
----------------
SjoerdMeijer wrote:
> We can nest hwloops, so it would be legal, but we think it will never be benecial because it involves spilling and reloading LR. Do we really need to set IsNestingLegal? Don't think this is important, but was just curious; I haven't looked and reminded myself how it is used.
Yep, so 'Legal' is a bit of a misnomer, but it prevents the independent pass from trying to generate nested hardware loops. The default is false, but I wanted to make it explicit here too.


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

https://reviews.llvm.org/D63212





More information about the llvm-commits mailing list