[clang] [llvm] [HLSL] implement elementwise firstbithigh hlsl builtin (PR #111082)

Sarah Spall via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 11:52:03 PDT 2024


================
@@ -424,7 +424,7 @@ Register SPIRVGlobalRegistry::getOrCreateCompositeOrNull(
     LLT LLTy = LLT::scalar(64);
     Register SpvVecConst =
         CurMF->getRegInfo().createGenericVirtualRegister(LLTy);
-    CurMF->getRegInfo().setRegClass(SpvVecConst, &SPIRV::iIDRegClass);
+    CurMF->getRegInfo().setRegClass(SpvVecConst, getRegClass(SpvType));
----------------
spall wrote:

I created issue #113486 and mentioned it in this PR.

https://github.com/llvm/llvm-project/pull/111082


More information about the llvm-commits mailing list