Skip to content

Commit 8eebe30

Browse files
committed
[SROA][wip] Simplify rewriteIntegerLoad freeze_bits application
1 parent 9ec02bf commit 8eebe30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,8 +2863,7 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
28632863

28642864
bool isFreezingLoad{true};
28652865
if (NewAI.getAllocatedType() == LI.getType() ||
2866-
(NewAI.getAllocatedType()->isPointerTy() &&
2867-
LI.getType()->isIntegerTy()))
2866+
NewAI.getAllocatedType()->isPointerTy())
28682867
isFreezingLoad = loadHasFreezeBits(&LI);
28692868
Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI,
28702869
NewAI.getAlign(), "load",

0 commit comments

Comments
 (0)