Teach the DataLayout aware constant folder to be much more aggressive towards
authorNick Lewycky <nicholas@mxc.ca>
Thu, 14 Feb 2013 03:23:37 +0000 (03:23 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 14 Feb 2013 03:23:37 +0000 (03:23 +0000)
commit9d90163bc31b71bb20b4423f3254544134d31ea2
tree965816766d34e1a6aa5f0a8e1ca642cf991247f3
parent38f85c5b9f2e2a7e1364ce44b6b8cd1ec0ffb0b3
Teach the DataLayout aware constant folder to be much more aggressive towards
'and' instructions. This is a pattern that shows up a lot in ubsan binaries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/constant-expr-datalayout.ll [new file with mode: 0644]