With this patch:
%r1 = lshr i64 -1,
4294967296 -> undef
Before this patch:
%r1 = lshr i64 -1,
4294967296 -> 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269105
91177308-0d34-0410-b5e6-
96231b3b80d8
}
Op1LV = getValueState(I.getOperand(1));
+
+ if (!Op0LV.isUndefined() && !Op1LV.isUndefined())
+ break;
}
// If this is an instructions whose result is defined even if the input is
// not fully defined, propagate the information.
; RUN: opt < %s -constprop -S | FileCheck %s
+; RUN: opt < %s -sccp -S | FileCheck %s
; CHECK-LABEL: shift_undef_64
define void @shift_undef_64(i64* %p) {