summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-02-11 19:19:41 +0000
committerDale Johannesen <dalej@apple.com>2009-02-11 19:19:41 +0000
commitcc5fc44d0203c25729c631e273a45efdbb7b5d98 (patch)
treec357fe2684eb82c257fa8a928e6d864e6b227d24 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent761b90b8251d9092d2c36bd3073dbd594472e0de (diff)
downloadbcm5719-llvm-cc5fc44d0203c25729c631e273a45efdbb7b5d98.tar.gz
bcm5719-llvm-cc5fc44d0203c25729c631e273a45efdbb7b5d98.zip
Make a transformation added in 63266 a bit less aggressive.
It was transforming (x&y)==y to (x&y)!=0 in the case where y is variable and known to have at most one bit set (e.g. z&1). This is not correct; the expressions are not equivalent when y==0. I believe this patch salvages what can be salvaged, including all the cases in bt.ll. Dan, please review. Fixes gcc.c-torture/execute/20040709-[12].c llvm-svn: 64314
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud