Skip to content
  • Evan Cheng's avatar
    Clean up my own mess. · 99ee78ef
    Evan Cheng authored
    X86 lowering normalize vector 0 to v4i32. However DAGCombine can fold (sub x, x) -> 0 after legalization. It can create a zero vector of a type that's not expected (e.g. v8i16). We don't want to disable the optimization since leaving a (sub x, x) is really bad. Add isel patterns for other types of vector 0 to ensure correctness. It's highly unlikely to happen other than in bugpoint reduced test cases.
    
    llvm-svn: 48279
    99ee78ef
Loading