[PATCH] D141994: [IndVars] Expand icmp in preheader rather than in loop

Aleksandr Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 00:06:29 PST 2023


aleksandr.popov created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
aleksandr.popov requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

'createInvariantCond' unconditionally builds icmp in the loop block, while it could always do it in preheader


https://reviews.llvm.org/D141994

Files:
  llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
  llvm/test/Transforms/IndVarSimplify/predicated_ranges.ll
  llvm/test/Transforms/IndVarSimplify/turn-to-invariant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141994.490053.patch
Type: text/x-patch
Size: 16818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230118/3b6da2ca/attachment.bin>


More information about the llvm-commits mailing list