As we find in many real workloads that there are maybe some lifetime.end intrinsics existing in return block, so it is better to skip lifetime.end intrinsic as well. This patch just do such thing.
TestPlan: check-llvm
Differential D95424
[CodeGenPrepare] Also skip lifetime.end intrinsic when check return block in dupRetToEnableTailCallOpts junparser on Jan 25 2021, 11:33 PM. Authored by
Details As we find in many real workloads that there are maybe some lifetime.end intrinsics existing in return block, so it is better to skip lifetime.end intrinsic as well. This patch just do such thing. TestPlan: check-llvm
Diff Detail
Event TimelineComment Actions Hi, In terms of correctness, this is fine IMO because removing lifetime.end makes the program more defined. Comment Actions Yes, It remove lifetime.end in the new duplicated return block.
Yes, you are right, also IMO lifetime.end does not have any effect in return block. |