[llvm] [DAGCombiner] Enable constant folding of (bitcast int_c0) -> fp_c0 (PR #82289)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 08:00:56 PST 2024


================
@@ -320,7 +320,8 @@ define <3 x double> @extvselectsetcc_crash(<2 x double> %x) {
 ; X64-LABEL: extvselectsetcc_crash:
 ; X64:       # %bb.0:
 ; X64-NEXT:    vcmpeqpd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm1
-; X64-NEXT:    vmovsd {{.*#+}} xmm2 = [1.0E+0,0.0E+0]
+; X64-NEXT:    movabsq $4607182418800017408, %rax # imm = 0x3FF0000000000000
----------------
goldsteinn wrote:

Its an optimization to save a load, I'm not 100% sure if the optimization is sound, but think it should be addressed there not here.

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


More information about the llvm-commits mailing list