Skip to content
Unverified Commit b7a95ad4 authored by Florian Hahn's avatar Florian Hahn
Browse files

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

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.

Reviewed By: aschwaighofer

Differential Revision: https://reviews.llvm.org/D158083
parent b3469ce6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment