[PATCH] D158083: [SimplifyCFG] Don't sink loads/stores with swifterror pointers.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 07:16:41 PDT 2023


fhahn created this revision.
fhahn added reviewers: nikic, efriedma, aschwaighofer.
Herald added subscribers: khei4, StephenFan, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

swifterror pointers can only be used as pointer operands of load & store
instructions (and as swifterror argument of a call). Sinking loads or
stores with swifterror pointer operands would require introducing a
select of of the pointer operands, which isn't allowed.

Check for this condition in canSinkInstructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158083

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/hoist-sink-swifterror-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158083.550744.patch
Type: text/x-patch
Size: 4326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/6a55fa16/attachment.bin>


More information about the llvm-commits mailing list