During SelectionDAG building explicitly set a node to constant zero when the
value is zero. This allows optmizations to kick in more easily. Fix some test cases so that they remain meaningful (i.e., not completely dead coded) when optimizations apply. <rdar://problem/14096009> superfluous multiply by high part of zero-extended value. llvm-svn: 184222
Showing
- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 8 additions, 0 deletionsllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
- llvm/test/CodeGen/ARM/mvn.ll 1 addition, 1 deletionllvm/test/CodeGen/ARM/mvn.ll
- llvm/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll 4 additions, 2 deletionsllvm/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
- llvm/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll 1 addition, 1 deletionllvm/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll
- llvm/test/CodeGen/X86/i128-mul.ll 35 additions, 1 deletionllvm/test/CodeGen/X86/i128-mul.ll
Loading
Please register or sign in to comment