aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/ValueTrackingTest.cpp
diff options
context:
space:
mode:
authorjjasmine <jjasmine@igalia.com>2025-07-04 14:55:07 -0700
committerGitHub <noreply@github.com>2025-07-04 22:55:07 +0100
commit07286b1fcdecf2aa557ae401946e265c8dab2c68 (patch)
tree3f7d4510e64bb1aa121a20d7deb24345fe88dd41 /llvm/unittests/Analysis/ValueTrackingTest.cpp
parent6db02dc4311b3ee52ec6e7e5e5cafb2600e7b30f (diff)
downloadllvm-07286b1fcdecf2aa557ae401946e265c8dab2c68.zip
llvm-07286b1fcdecf2aa557ae401946e265c8dab2c68.tar.gz
llvm-07286b1fcdecf2aa557ae401946e265c8dab2c68.tar.bz2
[InstCombine] Propagate poison pow[i], [us]add, [us]sub and [us]mul (#146750)
Fixes #146560 as well as propagate poison for [us]add, [us]sub and [us]mul
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
-rw-r--r--llvm/unittests/Analysis/ValueTrackingTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Analysis/ValueTrackingTest.cpp b/llvm/unittests/Analysis/ValueTrackingTest.cpp
index e283591..7a48105 100644
--- a/llvm/unittests/Analysis/ValueTrackingTest.cpp
+++ b/llvm/unittests/Analysis/ValueTrackingTest.cpp
@@ -911,10 +911,10 @@ TEST(ValueTracking, propagatesPoison) {
{false, "call i32 @llvm.fshr.i32(i32 %x, i32 %y, i32 %shamt)", 1},
{false, "call i32 @llvm.fshr.i32(i32 %x, i32 %y, i32 %shamt)", 2},
{true, "call float @llvm.sqrt.f32(float %fx)", 0},
- {false, "call float @llvm.powi.f32.i32(float %fx, i32 %x)", 0},
+ {true, "call float @llvm.powi.f32.i32(float %fx, i32 %x)", 0},
{false, "call float @llvm.sin.f32(float %fx)", 0},
{false, "call float @llvm.cos.f32(float %fx)", 0},
- {false, "call float @llvm.pow.f32(float %fx, float %fy)", 0},
+ {true, "call float @llvm.pow.f32(float %fx, float %fy)", 0},
{false, "call float @llvm.exp.f32(float %fx)", 0},
{false, "call float @llvm.exp2.f32(float %fx)", 0},
{false, "call float @llvm.log.f32(float %fx)", 0},