See also D153753
Diff Detail
Diff Detail
Event Timeline
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 1719 | This will assert if ptrmask is working on vectors. | |
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 1719 | It seems to not work on vectors: declare <2 x ptr> @llvm.ptrmask.v2p0.v2i64(<2 x ptr>, <2 x i64>)
define <2 x ptr> @ptrmask_align4_ptr_align1_vector(<2 x ptr> %ptr) {
%ptrmask = call <2 x ptr> @llvm.ptrmask.v2p0.v2i64(<2 x ptr> %ptr, <2 x i64> <i64 -4, i64 -4>)
ret <2 x ptr> %ptrmask
}
Intrinsic has incorrect return type!
ptr @llvm.ptrmask.v2p0.v2i64 | |
Comment Actions
LGTM
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 1719 | Interesting, that seems like an oversight. I'd still suggest to use getScalarSizeInBits() here for robustness. | |
This will assert if ptrmask is working on vectors.