Skip to content

Commit c0bf4b2

Browse files
committed
[VPlan] Remove unneeded VPValue::getLiveInIRValue() const (NFC).
The accessor is not needed/used.
1 parent 029bece commit c0bf4b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlanValue.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,7 @@ class VPValue {
175175
/// Returns the underlying IR value, if this VPValue is defined outside the
176176
/// scope of VPlan. Returns nullptr if the VPValue is defined by a VPDef
177177
/// inside a VPlan.
178-
Value *getLiveInIRValue() {
179-
assert(isLiveIn() &&
180-
"VPValue is not a live-in; it is defined by a VPDef inside a VPlan");
181-
return getUnderlyingValue();
182-
}
183-
const Value *getLiveInIRValue() const {
178+
Value *getLiveInIRValue() const {
184179
assert(isLiveIn() &&
185180
"VPValue is not a live-in; it is defined by a VPDef inside a VPlan");
186181
return getUnderlyingValue();

0 commit comments

Comments
 (0)