diff options
author | Nikita Popov <npopov@redhat.com> | 2023-11-01 11:36:56 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-11-01 12:56:30 +0100 |
commit | aca9c891a26eaa6e9078b19096cd9aa52d136091 (patch) | |
tree | b1db311ff7e6f91d851b24b02100fc42f8edf81a /llvm/test/ThinLTO | |
parent | 6aa3dcb47f581cb05a4881ebc53b06a574778f9d (diff) | |
download | llvm-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.ll | 2 |
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 } |