summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/SampleProf.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-13 18:47:06 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-13 18:47:06 +0000
commit445d03bf00b77c194542692bec416fa5d6965cbb (patch)
treef6860571310633f9a354972ee9831e406770f890 /llvm/lib/ProfileData/SampleProf.cpp
parentaea2a2809896db5e13655ce7aecd4851a339cf21 (diff)
downloadbcm5719-llvm-445d03bf00b77c194542692bec416fa5d6965cbb.tar.gz
bcm5719-llvm-445d03bf00b77c194542692bec416fa5d6965cbb.zip
[InstCombine] fold X == 0 || X == -1 to one compare (PR32524)
This is effectively a retry of: https://reviews.llvm.org/rL299851 but now we have tests and an assert to make sure the bug that was exposed with that attempt will not happen again. I'll fix the code duplication and missing sibling fold next, but I want to make this change as small as possible to reduce risk since I messed it up last time. This should fix: https://bugs.llvm.org/show_bug.cgi?id=32524 llvm-svn: 300236
Diffstat (limited to 'llvm/lib/ProfileData/SampleProf.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud