You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems enabling reg2mem here ( #111026 ) has introduced what looks like a bug, when doing SPIRV codegen. What looks like an unnecessary bitcast is generated. See %9:
; this was just taken from the; llvm/CodeGen/SPIRV/hlsl-intrinsics/saturate.ll test cases.define noundef float@saturate_float(float noundef %a) {
entry:
%hlsl.saturate = callfloat@llvm.spv.saturate.f32(float%a)
retfloat%hlsl.saturate
}
It seems enabling reg2mem here ( #111026 ) has introduced what looks like a bug, when doing SPIRV codegen. What looks like an unnecessary bitcast is generated. See %9:
saturate-repro.ll :
To reproduce this issue:
note: this bitcast seemingly appears in all the CodeGen/SPIRV/hlsl-intrinsics tests.
note: Also see comment I left on #111026
The text was updated successfully, but these errors were encountered: