aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorMomchil Velikov <momchil.velikov@arm.com>2024-07-08 11:17:58 +0100
committerMomchil Velikov <momchil.velikov@arm.com>2024-07-08 11:55:29 +0100
commita497e987e5b09ab58efc7c6bef5ff68d4cd750f3 (patch)
tree10cee791d8350a8765a14474b4feaf72c1545338 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent857700ff6fb9f9f653c3788445df06db07e7bb59 (diff)
downloadllvm-a497e987e5b09ab58efc7c6bef5ff68d4cd750f3.zip
llvm-a497e987e5b09ab58efc7c6bef5ff68d4cd750f3.tar.gz
llvm-a497e987e5b09ab58efc7c6bef5ff68d4cd750f3.tar.bz2
Reapply "[AArch64] Lower extending sitofp using tbl (#92528)"
This re-commits d1a4f0c9fb559eb4c2fb56112e56343bcd333edc after a issue was fixed in f92bfca9fc217cad9026598ef6755e711c0be070 ("[AArch64] All bits of an exact right shift are demanded (#97448)").
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 5a7d8a5..22d0708 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -8331,7 +8331,8 @@ bool CodeGenPrepare::optimizeInst(Instruction *I, ModifyDT &ModifiedDT) {
if (OptimizeNoopCopyExpression(CI, *TLI, *DL))
return true;
- if ((isa<UIToFPInst>(I) || isa<FPToUIInst>(I) || isa<TruncInst>(I)) &&
+ if ((isa<UIToFPInst>(I) || isa<SIToFPInst>(I) || isa<FPToUIInst>(I) ||
+ isa<TruncInst>(I)) &&
TLI->optimizeExtendOrTruncateConversion(
I, LI->getLoopFor(I->getParent()), *TTI))
return true;