The condition is always true because we check _offset == 0 just above: https://github.com/openjdk/valhalla/blob/b45a2837e0e815cb2c592f5aa833fa3f187ce1d6/src/hotspot/share/opto/type.cpp#L100
Thanks, Tobias ------------- Commit messages: - 8378222: [lworld] Redundant check in Type::Offset::dump2 Changes: https://git.openjdk.org/valhalla/pull/2138/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2138&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8378222 Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/valhalla/pull/2138.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2138/head:pull/2138 PR: https://git.openjdk.org/valhalla/pull/2138
