Commit 0b4a71d
[msan] Handle llvm.[us]cmp (starship operator) (llvm#125804)
Apply handleShadowOr to llvm.[us]cmp. Previously, llvm.[su]cmp was correctly handled heuristically when each parameter type is the same as the return type (e.g., `call i8 @llvm.ucmp.i8.i8(i8 %x, i8 %y)`) but handled incorrectly by visitInstruction when the return type is different e.g., (`call i8 @llvm.ucmp.i8.i62(i62 %x, i62 %y)`, `call <4 x i8> @llvm.ucmp.v4i8.v4i32(<4 x i32> %x, <4 x i32> %y)`).
Updates the tests from llvm#1257901 parent ec84684 commit 0b4a71d
File tree
3 files changed
+154
-353
lines changed- llvm
- lib/Transforms/Instrumentation
- test/Instrumentation/MemorySanitizer
3 files changed
+154
-353
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4945 | 4945 | | |
4946 | 4946 | | |
4947 | 4947 | | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
4948 | 4954 | | |
4949 | 4955 | | |
4950 | 4956 | | |
| |||
0 commit comments