We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d78f2 commit 731a3e6Copy full SHA for 731a3e6
compiler/rustc_mir_transform/src/gvn.rs
@@ -1712,7 +1712,10 @@ impl<'tcx> VnState<'_, 'tcx> {
1712
Some(ConstOperand { span: DUMMY_SP, user_ty: None, const_ })
1713
}
1714
1715
- #[instrument(level="trace", skip(self), ret)]
+ /// Construct a place which holds the same value as `index` and for which all locals strictly
1716
+ /// dominate `loc`. If you used this place, add its base local to `reused_locals` to remove
1717
+ /// storage statements.
1718
+ #[instrument(level = "trace", skip(self), ret)]
1719
fn try_as_place(&mut self, mut index: VnIndex, loc: Location) -> Option<Place<'tcx>> {
1720
let mut projection = SmallVec::<[PlaceElem<'tcx>; 1]>::new();
1721
loop {
0 commit comments