[llvm] Cleanup x86_mmx after removing IR type (PR #100646)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 20:03:03 PDT 2024
================
@@ -14,13 +14,13 @@ define void @foo(<1 x i64> %A, <1 x i64> %B) nounwind {
; CHECK-NEXT: emms
; CHECK-NEXT: retq
entry:
- %tmp4 = bitcast <1 x i64> %B to x86_mmx ; <<4 x i16>> [#uses=1]
- %tmp6 = bitcast <1 x i64> %A to x86_mmx ; <<4 x i16>> [#uses=1]
- %tmp7 = tail call x86_mmx @llvm.x86.mmx.paddus.w( x86_mmx %tmp6, x86_mmx %tmp4 ) ; <x86_mmx> [#uses=1]
- store x86_mmx %tmp7, ptr @R
+ %tmp4 = bitcast <1 x i64> %B to <1 x i64> ; <<4 x i16>> [#uses=1]
+ %tmp6 = bitcast <1 x i64> %A to <1 x i64> ; <<4 x i16>> [#uses=1]
----------------
phoebewang wrote:
Can we remove such `bitcast <1 x i64>.*to <1 x i64>`?
https://github.com/llvm/llvm-project/pull/100646
More information about the llvm-commits
mailing list