[IR] GetUnderlyingObject(), stripPointerCastsAndOffsets(): don't crash on `bitcast...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Jun 2020 18:11:49 +0000 (21:11 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Jun 2020 21:58:53 +0000 (00:58 +0300)
commit2b8d706b19c0e049da3eb62572b08af72ba2e5e6
tree08a1564f29f9d84526d71a7a0beca6291cd4dd96
parent381054a989ebd0b585fee46f2a01a7c5de10acf7
[IR] GetUnderlyingObject(), stripPointerCastsAndOffsets(): don't crash on `bitcast <1 x i8*> to i8*`

I'm not sure how to write standalone tests for each of two changes here.
If either one of these two fixes is missing, the test fill crash.
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/IR/Value.cpp
llvm/test/Transforms/InstSimplify/icmp.ll [new file with mode: 0644]