[PATCH] patch for missed constantFold optimization in InstCombine

Hi,

Any reviewers for this patch ? Any suggestions ?

Opt tool’s output for this ll before and after the patch is also attached.

Thanks,

Tejas

instCombineAddrspaceCast.ll (1.08 KB)

ConstantFolding.cpp.patch (799 Bytes)

new_Output.txt (477 Bytes)

old_Output.txt (622 Bytes)

Please send patches to llvm-commits as per our policy: http://llvm.org/docs/DeveloperPolicy.html

Also, your test-case needs to use FileCheck.