aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-06-02 16:17:32 +0000
committerCraig Topper <craig.topper@gmail.com>2017-06-02 16:17:32 +0000
commitb23e7c78a532be2107dc6391612ceecb1a4ebfcf (patch)
tree61b610dcdb84b02eac082cbb6bdd91175e0c0f60 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent4dc85eb75a7d7a6f0e467fa92f48bed1effdb528 (diff)
downloadllvm-b23e7c78a532be2107dc6391612ceecb1a4ebfcf.zip
llvm-b23e7c78a532be2107dc6391612ceecb1a4ebfcf.tar.gz
llvm-b23e7c78a532be2107dc6391612ceecb1a4ebfcf.tar.bz2
[InstSimplify][ConstantFolding] Teach constant folding how to handle icmp null, (inttoptr x) as well as it handles icmp (inttoptr x), null
Summary: The constant folding code currently assumes that the constant expression will always be on the left and the simple null will be on the right. But that's not true at least on the path from InstSimplify. This patch adds support to ConstantFolding to detect the reversed case. Reviewers: spatel, dberlin, majnemer, davide, joey Reviewed By: joey Subscribers: joey, llvm-commits Differential Revision: https://reviews.llvm.org/D33801 llvm-svn: 304559
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions