summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-11-24 10:06:26 -0500
committerSanjay Patel <spatel@rotateright.com>2019-11-24 10:06:26 -0500
commitf575f12c646544a3200852cf72212045fdf2e0b4 (patch)
tree3fa3ccc309cfe279115e940d33e844994d62116e /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
parentf04a3e981d3175d7f3d0f5008b842823034f47ed (diff)
downloadbcm5719-llvm-f575f12c646544a3200852cf72212045fdf2e0b4.tar.gz
bcm5719-llvm-f575f12c646544a3200852cf72212045fdf2e0b4.zip
[InstCombine] remove identity shuffle simplification for mask with undefs
And simultaneously enhance SimplifyDemandedVectorElts() to rcognize that pattern. That preserves some of the old optimizations in IR. Given a shuffle that includes undef elements in an otherwise identity mask like: define <4 x float> @shuffle(<4 x float> %arg) { %shuf = shufflevector <4 x float> %arg, <4 x float> undef, <4 x i32> <i32 undef, i32 1, i32 2, i32 3> ret <4 x float> %shuf } We were simplifying that to the input operand. But as discussed in PR43958: https://bugs.llvm.org/show_bug.cgi?id=43958 ...that means that per-vector-element poison that would be stopped by the shuffle can now leak to the result. Also note that we still have (and there are tests for) the same transform with no undef elements in the mask (a fully-defined identity mask). I don't think there's any controversy about that case - it's a valid transform under any interpretation of shufflevector/undef/poison. Looking at a few of the diffs into codegen, I don't see any difference in final asm. So depending on your perspective, that's good (no real loss of optimization power) or bad (poison exists in the DAG, so we only partially fixed the bug). Differential Revision: https://reviews.llvm.org/D70246
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud