| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 |
| ; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- | FileCheck %s |
| |
| ; Make sure we don't double delete a dead instruction. |
| |
| define void @pr155543() { |
| ; CHECK-LABEL: define void @pr155543() { |
| ; CHECK-NEXT: ret void |
| ; |
| %shuffle1 = shufflevector <4 x double> poison, <4 x double> poison, <8 x i32> <i32 poison, i32 poison, i32 poison, i32 poison, i32 0, i32 1, i32 2, i32 3> |
| %shuffle2 = shufflevector <8 x double> poison, <8 x double> %shuffle1, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 12, i32 13, i32 14, i32 15> |
| %fadd = fadd <8 x double> %shuffle1, zeroinitializer |
| %dead = shufflevector <8 x double> %fadd, <8 x double> %shuffle2, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 12, i32 13, i32 14, i32 15> |
| ret void |
| } |