about summary refs log tree commit diff
path: root/tests/mir-opt/instsimplify/casts.redundant.InstSimplify.diff
AgeCommit message (Collapse)AuthorLines
2024-07-29Perform instsimplify before inline to eliminate some trivial callsDianQK-33/+0
2024-04-18At debuginfo=0, don't inline debuginfo when inliningScott McMurray-1/+0
2023-10-25Never consider raw pointer casts to be trivalNilstrieb-7/+12
HIR typeck tries to figure out which casts are trivial by doing them as coercions and seeing whether this works. Since HIR typeck is oblivious of lifetimes, this doesn't work for pointer casts that only change the lifetime of the pointee, which are, as borrowck will tell you, not trivial. This change makes it so that raw pointer casts are never considered trivial. This also incidentally fixes the "trivial cast" lint false positive on the same code. Unfortunately, "trivial cast" lints are now never emitted on raw pointer casts, even if they truly are trivial. This could be fixed by also doing the lint in borrowck for raw pointers specifically.
2023-10-19FileCheck casts.Camille GILLOT-0/+29