InstCombine: Turn _chk functions into the "unsafe" variant if length and max langth...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 6 Jan 2011 14:22:52 +0000 (14:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 6 Jan 2011 14:22:52 +0000 (14:22 +0000)
commit8143a84c46b8d2fb58eddb46d84dd5d44d03cb6c
tree597092e9f340fae3b7c8e2d2c08dfb04f7801bd5
parent7d9f51f4b5e594c9c72717888a68c0c8a2f1267b
InstCombine: Turn _chk functions into the "unsafe" variant if length and max langth are equal.

This happens when we take the (non-constant) length from a malloc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122961 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/objsize.ll