[PATCH] D88662: [ARM] Prevent constants from ICmp instruction from being hoisted if part of a min(max()) pattern

Meera Nakrani via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 08:12:02 PDT 2020


MeeraN created this revision.
MeeraN added reviewers: dmgreen, SjoerdMeijer, samparker, pbarrio, jmolloy, mcrosier, rengolin.
Herald added subscribers: danielkiss, zzheng, hiraditya, kristof.beyls.
Herald added a project: LLVM.
MeeraN requested review of this revision.

Marks constants of an ICmp instruction as free if it's only user is a select 
instruction that is part of a min(max()) pattern. Ensures that in loops, in
particular when loop unrolling is turned on, SSAT will still be correctly generated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88662

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/CodeGen/ARM/ssat-unroll-loops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88662.295579.patch
Type: text/x-patch
Size: 6888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201001/4e3be5a3/attachment.bin>


More information about the llvm-commits mailing list