summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-10 17:48:14 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-10 17:48:14 +0000
commit57b4d8646ba1ae4385d04e2448c15f0c61790cb7 (patch)
tree9d1e5d9341119384e54bbea55ab3c4e9c5ede656 /clang/test
parentcd13ebca5feb96a415119adbcd9a6df4f08f9d60 (diff)
downloadbcm5719-llvm-57b4d8646ba1ae4385d04e2448c15f0c61790cb7.tar.gz
bcm5719-llvm-57b4d8646ba1ae4385d04e2448c15f0c61790cb7.zip
[InstCombine] Fix a crash in getSelectCondition if we happen to have two inverse vectors of i1 constants.
We used to try to truncate the constant vector to vXi1, but if it's already i1 this would fail. Instead we now use IRBuilder::getZExtOrTrunc which should check the type and only create a trunc if needed. I believe this should trigger constant folding in the IRBuilder and ultimately do the same thing just with the additional type check. llvm-svn: 310639
Diffstat (limited to 'clang/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud