[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / Transforms / InstCombine / 2008-10-23-ConstFoldWithoutMask.ll
blobd70d05293e8fc458443ad4774007dab5ad7f2516
1 ; RUN: opt < %s -instcombine
2 ; PR2940
4 define i32 @tstid() {
5         %var0 = inttoptr i32 1 to i8*           ; <i8*> [#uses=1]
6         %var2 = ptrtoint i8* %var0 to i32               ; <i32> [#uses=1]
7         ret i32 %var2