(1) The check needs to be on the 0th operand of whatever we're folding
(2) Checks for validity should happen before we change the bit
Fixes a bug which caused MultiSource/Applications/JM/lencod to fail at -O3.
Paths
| Differential D74002
[AArch64][GlobalISel] Fix one use check in getTestBitReg ClosedPublic Authored by paquette on Feb 4 2020, 3:16 PM.
Details Summary (1) The check needs to be on the 0th operand of whatever we're folding Fixes a bug which caused MultiSource/Applications/JM/lencod to fail at -O3.
Diff Detail
Event TimelineHerald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka. · View Herald Transcript This revision is now accepted and ready to land.Feb 5 2020, 9:50 AM Closed by commit rGa82a28ae12ae: [AArch64][GlobalISel] Fix one use check in getTestBitReg (authored by paquette). · Explain WhyFeb 5 2020, 9:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 242673 llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-ext-tbz-tbnz.mir
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-shift-tbz-tbnz.mir
|