https://bugs.llvm.org/show_bug.cgi?id=42209
Bug ID: 42209
Summary: Instsimplify: uadd_overflow(X, undef) is not undef
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
test/Transforms/InstSimplify/call.ll contains a few incorrect transformations
when undef is involved.
For example, when %v is zero, there's no overflow, so can't fold this to undef:
define {i8, i1} @test_uadd3(i8 %v) {
%0:
%result = uadd_overflow i8 %v, undef
ret {i8, i1} %result
}
=>
define {i8, i1} @test_uadd3(i8 %v) {
%0:
ret {i8, i1} undef
}
Transformation doesn't verify!
ERROR: Value mismatch
Example:
i8 %v = #x00 (0)
Source:
{i8, i1} %result = { ?, #x0 }
Target:
Source value: { ?, #x0 }
Target value: { #x00, #x1 }
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs