aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ThinLTO
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-11-01 11:36:56 +0100
committerNikita Popov <npopov@redhat.com>2023-11-01 12:56:30 +0100
commitaca9c891a26eaa6e9078b19096cd9aa52d136091 (patch)
treeb1db311ff7e6f91d851b24b02100fc42f8edf81a /llvm/test/ThinLTO
parent6aa3dcb47f581cb05a4881ebc53b06a574778f9d (diff)
downloadllvm-aca9c891a26eaa6e9078b19096cd9aa52d136091.zip
llvm-aca9c891a26eaa6e9078b19096cd9aa52d136091.tar.gz
llvm-aca9c891a26eaa6e9078b19096cd9aa52d136091.tar.bz2
[InstCombine] Avoid use of ConstantExpr::getIntegerCast()
Require that constants are ImmConstant for this transform, as we may otherwise generate constant expressions, which are not necessarily free.
Diffstat (limited to 'llvm/test/ThinLTO')
-rw-r--r--llvm/test/ThinLTO/X86/cfi-devirt.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/ThinLTO/X86/cfi-devirt.ll b/llvm/test/ThinLTO/X86/cfi-devirt.ll
index 7df936c..70b0ba2 100644
--- a/llvm/test/ThinLTO/X86/cfi-devirt.ll
+++ b/llvm/test/ThinLTO/X86/cfi-devirt.ll
@@ -91,7 +91,7 @@ cont2:
; CHECK-IR: br i1 {{.*}}, label %trap, label %cont2
; We still have to call it as virtual.
- ; CHECK-IR: %call3 = tail call i32 %5
+ ; CHECK-IR: %call3 = tail call i32 %7
%call3 = tail call i32 %5(ptr nonnull %obj, i32 %call)
ret i32 %call3
}