summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-07-10 13:33:26 +0000
committerSanjay Patel <spatel@rotateright.com>2018-07-10 13:33:26 +0000
commit06ea4206add244d32645715e98e64def14e86bd6 (patch)
tree0ddae78cb2276c812c90a03909cb83d66fc81d4d /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
parent612bf7cac568b7670b06e0d2c1e784e39bbf23aa (diff)
downloadbcm5719-llvm-06ea4206add244d32645715e98e64def14e86bd6.tar.gz
bcm5719-llvm-06ea4206add244d32645715e98e64def14e86bd6.zip
[InstCombine] allow more shuffle-binop folds with safe constants
The case with 2 variables is more complicated than the case where we eliminate the shuffle entirely because a shuffle with an undef mask element creates an undef result. I'm not aware of any current analysis/transform that recognizes that undef propagating to a div/rem/shift, but we have to guard against the possibility. llvm-svn: 336668
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud