Skip to content

Commit f37d2ec

Browse files
committed
[LoopVectorize] Revert Classic Flang patch causing AArch64 test failure
This patch partially reverts the following commit from an early version of Classic Flang LLVM: flang-compiler/llvm@6866909 When the LoopVectorize.cpp change in that commit is ported to LLVM 14, it causes a failure in the following test: llvm/test/Transforms/LoopVectorize/AArch64/smallest-and-widest-types.ll Reverting the change allows all tests to run cleanly.
1 parent d3a8326 commit f37d2ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4816,10 +4816,8 @@ void LoopVectorizationCostModel::collectElementTypesForWidening() {
48164816
if (ValuesToIgnore.count(&I))
48174817
continue;
48184818

4819-
// Examine Loads, Stores, PHINodes
4820-
// Also examine instructions which convert to a float/double
4821-
if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I) &&
4822-
!isa<FPExtInst>(I) && !isa<SIToFPInst>(I) && !isa<UIToFPInst>(I))
4819+
// Only examine Loads, Stores and PHINodes.
4820+
if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I))
48234821
continue;
48244822

48254823
// Examine PHI nodes that are reduction variables. Update the type to

0 commit comments

Comments
 (0)