[PATCH] D125398: [ControlHeightReduction] Freeze condition when converting select to branch
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 21:15:55 PDT 2022
aqjune added inline comments.
================
Comment at: llvm/test/Transforms/PGOProfile/chr.ll:1182
+; CHECK-NEXT: [[DOTFR1:%.*]] = freeze i32 [[TMP0]]
+; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[DOTFR1]], 255
; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 0
----------------
It seems this freeze is introduced even if the source code (`entry`) had a conditional branch.
Is it because CHR first converts the conditional branch into `select` and then convert it back into a conditional branch?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125398/new/
https://reviews.llvm.org/D125398
More information about the llvm-commits
mailing list