[llvm] [DirectX backend] avoid generate redundant bitcast in DXILPrepareModule (PR #65163)

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 16:08:21 PDT 2023


================
@@ -2,9 +2,16 @@
 target triple = "dxil-unknown-unknown"
 
 ; Make sure not crash when has typed ptr.
-; CHECK:@test
+; CHECK:define i64 @test(ptr %p)
+; Make sure no bitcast generated.
+; CHECK-NOT:bitcast
----------------
python3kgae wrote:

Fixed.

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


More information about the llvm-commits mailing list