[PATCH] D38415: [SimplifyIndVar] Correctly extract constant LLVM value from SCEV during constant folding

Hongbin Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 29 10:22:54 PDT 2017


etherzhhb created this revision.

1. Correctly rewrite ConstantInt Zero to ConstantPointerNull when the type SCEV and the corresponding LLVM value do not match
2. Try to get LLVM Constant from SCEVUnknown


Repository:
  rL LLVM

https://reviews.llvm.org/D38415

Files:
  lib/Transforms/Utils/SimplifyIndVar.cpp
  test/Transforms/IndVarSimplify/constant-fold-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38415.117177.patch
Type: text/x-patch
Size: 4331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170929/773bf2c1/attachment.bin>


More information about the llvm-commits mailing list